Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weird HTTP response
#1
I'm putting this in Bar because it's not strictly Python-related, even though I used requests.get().

I got a HTTP Response Code 302 with the following Response.headers content:

'Accept-Ranges': 'bytes', 'Server': 'nginx', 'Vary': 'Accept-Encoding', 'Connection': 'keep-alive', 'X-Origin-Server': 'ocelot-green-2515826831-hwmdw__active_cache', 'Date': 'Wed, 21 Feb 2018 00:42:04 GMT', 'Cache-Control': 'private, max-age=60', 'Content-Length': '24416', 'x-cloud-trace-context': '8b9e248af83a6556acb78260c3b82e0a/15832939404520912928;o=0', 'Expires': 'Wed, 21 Feb 2018 00:43:04 GMT', 'Content-Encoding': 'gzip', 'Content-Type': 'text/html; charset=utf-8'}
The Response.text renders as a perfectly normal-looking html webpage and displays fine in my browser, so it doesn't appear that the request was redirected.

What do you suppose happened here?
Reply


Messages In This Thread
Weird HTTP response - by league55 - Feb-21-2018, 12:59 AM
RE: Weird HTTP response - by abhin - Feb-21-2018, 03:12 AM
RE: Weird HTTP response - by league55 - Feb-21-2018, 04:36 AM
RE: Weird HTTP response - by Larz60+ - Feb-21-2018, 05:12 AM
RE: Weird HTTP response - by league55 - Feb-22-2018, 08:41 AM
RE: Weird HTTP response - by Larz60+ - Feb-22-2018, 12:03 PM
RE: Weird HTTP response - by league55 - Feb-22-2018, 04:46 PM
RE: Weird HTTP response - by wavic - Feb-22-2018, 05:20 PM
RE: Weird HTTP response - by Larz60+ - Feb-22-2018, 06:54 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020