Thanks for the hint,

now everything works fine....

But isn't it a little bit inconsistent to allow GET-like parameter handling in 
a POST-method?

Beste Grüße / Best Regards,
 
Timo Rössner
 
Wincor Nixdorf International GmbH
Services Division OES
Timo Roessner
Wernerwerkdamm 5 (Gebäude 202 / 7.Flur / Raum 743)
13629 Berlin
Germany
Tel.:  +49 30  5017 2865
Fax.:  +49 30  5017 2872
Mobil:  +49 151 171 573 16
Mail:[EMAIL PROTECTED]
-----Original Message-----
From: Roland Weber [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 18, 2007 4:35 PM
To: HttpClient User Discussion
Subject: Re: Using Post-method but getting "URI to long"?

Hello Timo,

> request failed: URI too long (longer than 8190)
> 
> Google now tells me, that this only happens using the "GET" method,
> because with GET the length of an URL is limited.

If you do it right, it happens only with the GET method.

>       HttpMethod method = new PostMethod(url);
>       method.setQueryString(urlParams);

If you want to post your data in the message body, don't
add it to the URL query string. Add it as parameters.

cheers,
  Roland


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


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

Reply via email to