Jira (PUP-10035) Follow HTTP redirects

2019-11-11 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-10035  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Follow HTTP redirects   
 

  
 
 
 
 

 
 This is contained in PUP-10033  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.326125.1569366252000.25988.1573467600053%40Atlassian.JIRA.


Jira (PUP-10035) Follow HTTP redirects

2019-09-24 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-10035  
 
 
  Follow HTTP redirects   
 

  
 
 
 
 

 
Issue Type: 
  Improvement  
 
 
Assignee: 
 Unassigned  
 
 
Created: 
 2019/09/24 4:04 PM  
 
 
Priority: 
  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.