jhy/jsoup — Issue #139: A set-cookie order issue in Jsoup HTTP Module
Author: erwinyang
Created: 2011-11-15 10:28:34+00:00
State: open

Some website may set a cookie for multiple times with different value.

For example, Jsoup may receive set-cookie headers in such a sequence
cookiename = value1
cookiename = value2

after the header is processed, the correct value of 'cookiename' should be 'value2'.
but unfortunately, Jsoup processed the headers in a reversed order, so the final value would be 'value1'
this problem might cause wrong behavior of the crawler with some websites.

thanks.