Skip to content Skip to sidebar Skip to footer

Http Post Request Returns Html Instead Of Csv Data

I am trying to fetch a csv off of an aspx website. There is no direct link to the csv, it is server generated when posting the form. The following works correctly in Google App Scr

Solution 1:

The first difference I can see between the two code snippets is that you are not passing your cookies into the Python version.

It would be beneficial if you had a look at the HTML you got in response. Perhaps there's some error message (like: Please log in).

Try adding your cookies to the request and see if that helps.

Post a Comment for "Http Post Request Returns Html Instead Of Csv Data"