Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-21 Thread brian -
Maybe skip grabbing the cookies when request code result is 302 (redirect etc) On Fri, Dec 21, 2012 at 1:53 PM, brian - wrote: > I think when OnLocationChange triggers, Location already has the new URL. > > > On Fri, Dec 21, 2012 at 5:06 AM, Albert Wiersch > wrote: > >> >> > -Original Messa

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-21 Thread brian -
I think when OnLocationChange triggers, Location already has the new URL. On Fri, Dec 21, 2012 at 5:06 AM, Albert Wiersch wrote: > > > -Original Message- > > From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] > On > > Behalf Of brian - > > > > Then it should be Locatio

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-20 Thread Albert Wiersch
> -Original Message- > From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On > Behalf Of brian - > > Then it should be Location. > > checking LocationChange and RequestDone for the loc ends in the same final > URL at the end, going from .com to the localized domain H

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-20 Thread brian -
*for Google.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-20 Thread brian -
Then it should be Location. checking LocationChange and RequestDone for the loc ends in the same final URL at the end, going from .com to the localized domain procedure TForm1.HttpCli1LocationChange(Sender: TObject); > begin > memo1.Lines.Add(HttpCli1.CtrlSocket.Addr); > memo1.Lines.Add(HttpC

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-20 Thread Albert Wiersch
> -Original Message- > From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On > Behalf Of brian - > > You can use the OnLocationChange event to know when the URL changed. That seems to let me know when the 'Location' property changes (like in response to a 'Location' H

Re: [twsocket] THttpCli -> How to know what URL is requested?

2012-12-20 Thread brian -
You can use the OnLocationChange event to know when the URL changed. On Thu, Dec 20, 2012 at 4:10 PM, Albert Wiersch wrote: > > How can I know what URL was last requested? > > The "URL" property seems to always be the original URL, so this doesn't > work > in the case of a redirection. > The "Loc

[twsocket] THttpCli -> How to know what URL is requested?

2012-12-20 Thread Albert Wiersch
How can I know what URL was last requested? The "URL" property seems to always be the original URL, so this doesn't work in the case of a redirection. The "Location" property seems to indicate the last value of the "location" property that was received, and is sometimes, but not always the URL of