Jira (PUP-10035) Follow HTTP redirects

2 views
Skip to first unread message

Josh Cooper (JIRA)

unread,
Sep 24, 2019, 7:06:04 PM9/24/19
to puppe...@googlegroups.com
Josh Cooper created an issue
 
Puppet / Improvement PUP-10035
Follow HTTP redirects
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2019/09/24 4:04 PM
Priority: Normal Normal
Reporter: Josh Cooper

Implement HTTP redirection based on puppet's current behavior:

  • If the HTTP response code is 301, 302, 307, then follow the redirect using the Location response header.
  • Codes 300, 303, 304, 305, and 308 are treated as errors
  • Follow redirects for all HTTP methods, even unsafe ones like PUT
  • Always preserve the HTTP method, for example, never switch from POST to GET
  • Preserve all headers, except Host.
  • Preserve all query parameters
  • Raise an exception if we redirect more than the limit, which defaults to 10
  • Redirection loops are handled by the redirect limit

Additionally responses 301, 302, and 307 may have a response body. The response body must be fully read/drained when using persistent connections, otherwise, the next request will read the body from the redirected request.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
Nov 11, 2019, 5:20:03 AM11/11/19
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-10035
 
Re: Follow HTTP redirects

This is contained in PUP-10033

Reply all
Reply to author
Forward
0 new messages