Re: Retrieve final URL after redirection



On 09/05/2013 03:05 PM, Daniel Drake wrote:
What is the best way to get the real URL of the completed SoupMessage
after all redirection has happened?

The SoupMessage's URI gets updated when a redirect happens, so just call
soup_message_get_uri() (or read the "uri" property), and then use that
with soup_uri_new_with_base() to resolve the relative link.

-- Dan



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