You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by aljesco <al...@gmail.com> on 2010/04/12 22:43:42 UTC

Additional parameters in requests

Hello all,
I'm wcoding the application that using the httpclient 3.x
When I send the GET request to server, the some parameters added
automatically into the request.
The first GET request is executing normally. All next requests are modified.
For example, in next code the "Cookie2: $Version=1" added
automatically. In POST-request I have one more parameter - "Expect:
100-Continue".

GET / HTTP/1.1
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.2.3)
Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru,en-us;q=0.7,en;q=0.3
Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Host: www.example.com
Cookie: inform=43cca300bb7b3e34468dda2a94501dd3
Cookie2: $Version=1

I tried to execute
httpclient.getParams().isParameterTrue("USE_EXPECT_CONTINUE");
and this one returns me "false", but is still happens. Also, I tried to run
httpost.removeHeaders("Expect");
httpost.removeHeaders("Cookie2");
and it's not helping
Can anyone tell me how to disable this feature?
Thanks, Alex.

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org