hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Glück <ortwin.glu...@nose.ch>
Subject Re: Posted data losing the last 2 characters when you submit an @ symbol ?
Date Fri, 10 Dec 2004 15:47:57 GMT
James,

you can use PostMethod#addParameter(String, String) to set POST 
parameters. You do not need to care about URL encoding them, as 
HttpClient will do that for you.

So a simple:

postmethod.addParameter("myemail", "ortwin.glueck@nose.ch");

will correctly encode and transfer the parameter to the server.

HTH

Ortwin Glück

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


Mime
View raw message