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(HttpCli1.Location);
> end;
> procedure TForm1.HttpCli1RequestDone(Sender: TObject; RqType:
> THttpRequest; ErrCode: Word);
> begin
>   memo1.Lines.Add(HttpCli1.Location);
> end;


Do you have a URL where this isn't the case to test?

On Thu, Dec 20, 2012 at 10:21 PM, Albert Wiersch
<supp...@htmlvalidator.com>wrote:

>
> > -----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' HTTP header), but that property doesn't always
> indicate the correct URL of the current request.
>
> Albert
>
>
> --
> 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
>
--
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

Reply via email to