Francois, I constructed a 301 page for you at www.hedaal.nl/tmp/fromhere.asp
If you use IE this link will relocate you to http://www.hedaal.nl/tmp/to%20here.html If you use OverbyteIcsHttpTst it will give you a 400 <Bad Request> because of the space in "to here.html" The asp code for the fromhere.asp is ----------------- p = "http://www.hedaal.nl/tmp/to here.html" Response.Status="301 Moved Permanently" Response.AddHeader "Location", p ---------------- Please note that the following will cause the server to include a %20 before sending the header ---------------- p = "http://www.hedaal.nl/tmp/to here.html" response.redirect p ---------------- Frans ----- Original Message ----- From: "Frans van Daalen" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Wednesday, April 18, 2007 6:49 PM Subject: Re: [twsocket] httpcli v6 "bad request" > Francois, > > The website and page that is the cause of this problem is rather hard to > get > to. I'm trying to create a simial problem on one of the website I have > myself. As soon as I have done that I will let you know. > > I have solved it for now by with > > httpClient.FPath := stringreplace(httpclient.fpath,' > ','%20',[rfreplaceall]); > > in a onLocationChange event > > Frans > > ----- Original Message ----- > From: "Francois PIETTE" <[EMAIL PROTECTED]> > To: "ICS support mailing" <twsocket@elists.org> > Sent: Wednesday, April 18, 2007 2:38 PM > Subject: Re: [twsocket] httpcli v6 "bad request" > > >> Hello Frans, >> >> I'm back from vacation and see your messages. >> Do you have a reproductible case that I could try easily ? >> >> -- >> Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html >> -- >> [EMAIL PROTECTED] >> http://www.overbyte.be >> >> >> ----- Original Message ----- >> From: "Frans van Daalen" <[EMAIL PROTECTED]> >> To: "ICS support mailing" <twsocket@elists.org> >> Sent: Monday, April 16, 2007 7:29 PM >> Subject: Re: [twsocket] httpcli v6 "bad request" >> >> >>> arggg...found it! >>> >>> The location url contains a space. I'm now trying to solve this. Using >>> the >>> OnLocationChange to adjust the url doesn't work because of >>> --------------- >>> THttpCli.StartRelocation >>> . >>> . >>> . >>> if Assigned(FOnLocationChange) then >>> FOnLocationChange(Self); >>> SaveLoc := FLocation; { 01/05/03 } >>> InternalClear; >>> FLocation := SaveLoc; >>> FDocName := FPath; >>> AdjustDocName; >>> . >>> . >>> . >>> --------------- >>> >>> FPath already holds the new location value. Anyone with some ideas? >>> >>> >>> -- >>> 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 >> > > > -- > 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