Hi Roland,

After trying everything and it still got me the same problem (I even
restarted Eclipse), I restarted the computer and then it just works (anyway
.setRequestHeader() is still necessary, not as I expected,
"'application/x-www-form-urlencoded" will not be the default).

I hate myself to bother you so much time just because I didn't restart
computer.

Han

 

Roland Weber wrote:
> 
> Hello Han,
> 
> get a trace of the request your servlet is receiving
> from the browser. Then get a trace or wire log of the
> request you are sending. Compare the two and fix the
> notable differences. Order of headers is not relevant,
> and headers like Transfer-Encoding and Content-Length
> are controlled by HttpClient.
> What Content-type does the InputStreamRequestEntity
> use? Can you pass the content type in the constructor?
> The one you set manually might get overwritten.
> 
> cheers,
>   Roland
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/postmethod-does-not-work-tf4719655.html#a13515601
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to