Re: Retrieve final URL after redirection
- From: Dan Winship <danw gnome org>
- To: Daniel Drake <dsd laptop org>
- Cc: libsoup-list gnome org
- Subject: Re: Retrieve final URL after redirection
- Date: Thu, 05 Sep 2013 21:24:37 -0400
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]