#289 ConnectionManager ignores multiple Set-Cookie headers

v2.0
open
nobody
None
5
2011-11-03
2011-11-03
Ramonus
No

Not sure what the specifications are, but the ConnectionManager will only process one Set-Cookie header when there are more available.
Based on versie 2.1, the cause is org.htmlparser.http.ConnectionManager.parseCookies(URLConnection), line 1098:

string = connection.getHeaderField ("Set-Cookie");

This will only handle one header.

I will attach a fixed ConnectionManager.java which can be used as a patch.

Discussion

  • Ramonus

    Ramonus - 2011-11-03

    Patched ConnectionManager which handles multiple Set-Cookie headers

     
  • Ramonus

    Ramonus - 2011-11-03

    Just for the record: browsers like Firefox are robust for multiple Set-Cookie headers.

     
  • Ramonus

    Ramonus - 2011-11-03
    • milestone: --> v2.0
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks