I am wondering if HTTPoison can return the URL that was actually fetched. For example, if I am requesting http://something
and the server does 301 redirect to https, I want to know the https URL. If I include :follow_redirect
opt, I am getting a response, but the request_url
returned to me still says http://something
and not the https://
URL. The https URL is what actually contained the content.
Maybe it is better to do recursion myself until the status code is not 301? Or is there better way?
Many thanks you!