Re: Retrieve final URL after redirection



On Sat, Sep 7, 2013 at 9:36 AM, Dan Winship <danw gnome org> wrote:
I don't get a redirect when I fetch that URI.

If I fetch "http://google.com/"; with no "www", then it redirects to
"www.google.com", and the URI property on the message gets updated to
reflect that.

Hmm. http://google.com/ definitely redirects here too, but the URI
property does not change in my test case.

Another test case is http://ftp.gnome.org/pub/GNOME/sources/libsoup
This does redirect to http://ftp.gnome.org/pub/GNOME/sources/libsoup/
(trailing slash added).

But in the same test, the URI property does not change.

Anyway, good to know how this is supposed to work. I will dig into the
code and see if I can find an explanation.

Thanks
Daniel


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]