[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski resolved HTTPCLIENT-945.
------------------------------------------

    Resolution: Invalid

Per section 10.3.3 of RFC 2616 responses 302 (FOUND) to any method other than 
GET or HEAD may not be redirected automatically. Your method is POST.

If you want to override this standard compliant behaviour you can provide a 
custom RedirectHandler in version 4.0.x or a custom RedirectStrategy in version 
4.1  

Oleg

> HttpClient does not follow 302 
> -------------------------------
>
>                 Key: HTTPCLIENT-945
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-945
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 4.0.1, 4.1 Alpha2
>         Environment: Win7, Netbeans 6.8, JDK6_20
>            Reporter: oliver  z
>         Attachments: debug.log
>
>
> i have a server which gives me a authentication string in the response 
> header. with that i can connect to my streamserver and download a video file 
> eg. mp3/avi...
> my server sends:
> [X-Powered-By=PHP/5.2.11, 
> Cache-Control=no-cache, no-store, must-revalidate, 
> Pragma=no-cache, 
> Expires=Sat, 26 Jul 2010 05:00:00 GMT, 
> Content-Type=audio/mpeg, 
> Location=http://mysub.myhost.com/3728/20713728.avi?__dd1__=1274891260, 
> Content-Length=0,
> Connection=close, 
> Date=Wed, 26 May 2010 16:17:40 GMT, 
> Server=lighttpd/1.5.0]
> this is the 302 (says wireshark) but HttpClient will just not follow
> but it must because the headers etc. are used for authentication 
> how can i achieve that?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to