Getting a 401 from requests.get, but not when logging in via the browser.
Dieter Maurer
dieter at handshake.de
Tue Apr 21 12:40:10 EDT 2020
dcwhatthe at gmail.com wrote at 2020-4-20 14:48 -0700:
> ...
>I tried telneting the landing page, i.e. without the specific node that requires the login. So e.g.
>
>Telnet thissite.oh.gov 80
>
>, but it returns a 400 Bad Request. Before that, the Telnet screen is completely blank ; I have to press a key before it returns the Bad Request.
>
>
>Roger on knowing what the site is asking for. But I don't know how to determine that.
I use `wget -S` to learn about server responses.
I has the advantage (over `telnet`) to know the HTTP protocl.
More information about the Python-list
mailing list