How can I force Java's HttpClient to accept invalid cookies?

后端 未结 6 1017
南方客
南方客 2020-12-15 14:25

I\'m working on a script that logs into WordPress, however, HttpClient\'s cookie policy identifies the cookies set by WordPress to be invalid:

May 17, 2009 1         


        
6条回答
  •  死守一世寂寞
    2020-12-15 15:11

    HttpClient is the only thing in the world that respects the RFC. I put in a request to strike the whole prefix path to begin with. There are lots of sites that set the path to a path they then forward you to. It is a very useful thing to do. Since Chrome, IE, Firefox, Safari, Opera and every other browser doesn't care I think HTTPClient should stop caring so we can move on with our lives.

提交回复
热议问题