java - commons-httpclient removed port 80 from the Host header after executeMethod -


i created httpmethod specified host , port , execute httpclient.executemethod(). however, time host receive it, port truncated host header in http request.

the host header information in httpmethod prior executing following: user-agent: me host: stackoverflow.com:80

at time received host:

user-agent: jakarta commons-httpclient/3.1 host: stackoverflow.com

i have seen posting can set user-agent in httpclient prior executing. but, i've tried host via hostconfiguration, , no luck. has seen problem before , resolved such host not change?

this not happened when used other httpclient package, or when hit different port.

found answer: how can override "host" header in request when using apache commons httpclient


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -