Opened 10 years ago

Last modified 9 years ago

#5434 enhancement new

— at Web browser-like redirection Agent for twisted.web.clientVersion 2

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

Description (last modified by Jean-Paul Calderone)

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 browser-like 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 (2)

comment:1 Changed 10 years ago by DefaultCC Plugin

Cc: jknight added

comment:2 Changed 10 years ago by Jean-Paul Calderone

Description: modified (diff)
Note: See TracTickets for help on using tickets.