• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTPClient - cookie problem

 
Lee Lowder
Greenhorn
Posts: 6
Slackware Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently trying to use HTTPClient 4.1.3 to try to login to an app.

It is mostly working well, but this app sets cookies based on certain groups, and some of these groups have spaces in the name.

This is resulting in cookies being set with spaces in the name. It works in a browser, but for some reason is not working in httpclient.

I am using compatibility mode for the cookies, and when I dump them to screen, I do see the full value I am expecting.

I am also seeing the full cookie value in the Apache logs when I enable that level of logging.

However, I am seeing a truncated version in the webapp's logging.

Is there a different cookie mode I need to use, or is there something I am missing perhaps?

Any ideas are appreciated.
 
Lee Lowder
Greenhorn
Posts: 6
Slackware Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just as an update.

I've determined that the problem is that httpclient is stripping quotes from the cookie value.

I'm currently trying to create a custom cookie spec to make it not do this, but having trouble with locating documentation to assist with this.

If anyone has any suggestions, or knows of any documents that are for httpclient 4.1.3, I would appreciate it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic