How to get the redirected URL?

Apr 2, 2014 at 9:43 AM
I'm fetching a document that can contain relative URLs. Since the original request may be redirected, I need to know the URL actually used to fetch the resource to turn those relative URLs into absolute URLs.

I took a look in http_win7.cpp and http_win8.cpp, but I don't see where this is handled (I think the former would need to use WinHttpRequestOption_URL and the latter would need to do something with the data in the OnRedirect).

Also, there's a typo in the comment on line 230 of http_win7.cpp: "chanllenges"
Coordinator
Apr 10, 2014 at 1:33 AM
Edited Apr 10, 2014 at 1:35 AM
Hi Henric

Your observation is correct, currently, there is no way to access the redirected URL with the http_client.
We will try to fix this for one of our future releases.

This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.