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

Sangjin Lee updated GERONIMO-3846:
----------------------------------

    Attachment: GERONIMO-3846.patch

A suggested fix.

- Cookies are really stored per name.  There can be only one cookie per name.  
Therefore, it makes sense to add cookies using their names.
- Added transferring cookies from the response to a subsequent request in case 
of redirects/auth challenges.

> cookies are not carried over when requests are redirected
> ---------------------------------------------------------
>
>                 Key: GERONIMO-3846
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3846
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: AsyncHttpClient
>    Affects Versions: 1.x
>            Reporter: Sangjin Lee
>            Priority: Minor
>         Attachments: GERONIMO-3846.patch
>
>
> When you send a request and receive a redirect response (301 or 302), the 
> response may contain cookies (via Set-Cookie header).  For subsequent 
> redirect requests, these cookies need to be sent.  Currently AHC does not 
> send any cookies unless explicitly set by the caller.
> Two cases where this should be done are redirects and auth challenges.

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

Reply via email to