Opened 10 years ago

Last modified 9 years ago

#5434 enhancement new

— at Web browser-like redirection Agent for twisted.web.clientInitial Version

Reported by: Tom Most Owned by:
Priority: normal Milestone:
Component: web Keywords: agent
Cc: jknight, Tom Most, Jonathan Jacobs Branch:
Author:

Description

The existing twisted.web.client.RedirectAgent implements redirection in a strictly by-the-RFC manner, which breaks on web sites which assume the historic behavior of web browsers. An additional, less strict, implementation would be useful for interacting with legacy systems. It should implement the following quirks:

  • Treat 301 Moved Permanently and 302 Found redirects on non-{HEAD,GET} requests like 303 See Other: change the method to GET and proceed, instead of failing.
  • Follow redirects which give relative URLs in the Location header, resolving them to absolute.

Change History (0)

Note: See TracTickets for help on using tickets.