In THttpCli.SendRequest, try this fix (FTargetPort instead of FPort): if FTargetPort = '80' then Headers.Add('Host: ' + FTargetHost) else Headers.Add('Host: ' + FTargetHost + ':' + FTargetPort);
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] The author for the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be ----- Original Message ----- From: "Bruno Mannina" <[EMAIL PROTECTED]> To: <twsocket@elists.org> Sent: Friday, September 16, 2005 3:33 PM Subject: [twsocket] Problem with Proxy Port with HttpTest > Hi all, > > I'm new in this mailing, so i want to explain my problem. > > I try to use the little program HttpTst to get a web page. > I use a proxy server so i fill fields in HttpTst (see picture at > http://www.matheo-software.com/tmp/pic.jpg ) > but i get an error when i try to GET the Web page. > > I see in the text that the Port of the proxy was Added just behind the > Host of my Host (URL). Is-it normal ? > > Do you have already seen this problem ? > > That is what i get in command line : > > Using proxy '159.151.224.13:8080' > > cmd> GET > http://v3.espacenet.com/results?sf=a&CY=ep&LG=en&DB=EPODOC&TI=carbon&PN=&AP=&PR=&PA=&IN=&PGS=20&FIRST=1&PD= > > HTTP/1.0 > > cmd> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* > > cmd> Connection: Keep-Alive > > cmd> Accept-Language: en, fr > > cmd> User-Agent: Mozilla/3.0 (compatible) > > cmd> Host: v3.espacenet.com:8080 <================== HERE > > cmd> > > text/html; charset=iso-8859-1 => results > > Location = > http://v3.espacenet.com/results?sf=a&CY=ep&LG=en&DB=EPODOC&TI=carbon&PN=&AP=&PR=&PA=&IN=&PGS=20&FIRST=1&PD= > > URL = > http://v3.espacenet.com/results?sf=a&CY=ep&LG=en&DB=EPODOC&TI=carbon&PN=&AP=&PR=&PA=&IN=&PGS=20&FIRST=1&PD= > > Document = results > > RequestDone, no error. Status =404 > > GET Failed ! > > StatusCode = 404 > > ReasonPhrase = Not Found > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be