mitre/HTTP-Proxy-Servlet — pull request #25 by v0idnull (2014-04-08 00:08:13+00:00)
Title: Have HttpClient ignore cookies

This is my first pull request, so I am sorry if I'm not going about this the right way.

It was noticed that while running under Tomcat 7, cookies that were set from previous requests were being added to subsequent requests, despite those requests never containing a Cookie header.

I'm certain that the expectation is for the proxy to be completely transparent, and it would seem Apache's HttpClient does some behind the scenes work with regards to cookies.

This change sets the cookie police to IGNORE_COOKIES, preventing any automated cooking handling, while still allowing manual entry of the Cookie/Set-Cookie headers.

This has fixed our issues, no more unexpected cookies are being set.