Why doesn't HTTPoison return the HTML of the website?

It’s because the 307 status, that means the site has been temporary redirected to other location. The new location can be found in headers, here is http://megaplusredirection.tedata.net/VDSL-Redirection_90.html.

You can run HTTPosion.get! again to fetch data from the new location, or try to use [follow_redirect: true] option like this post: HTTPoison : Get body of redirected location target - #5 by Nicolas

2 Likes