hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: PostMethod.setQueryString vs PostMethod.addParameter
Date Thu, 18 Jun 2009 13:54:06 GMT
On Wed, Jun 17, 2009 at 07:03:52PM -0500, charlie wrote:
> Java 1.6
> HttpClient 3.1
> OS: Windows & Linux
> 
> I'm seeing some odd behavior, I am trying to POST to a website, using the
> setQueryString method with my test data, it works fine all goes well.  Using
> the addParameter(key,value)  , I get a post fail ( unfortunately the website
> doesn't report what's going wrong ).
> 
> Normally I'd say fine I'll just use the setQuery , but the real world data
> is much bigger, and I'm getting a URL that exceeds the standards when I try
> to post.
> 
> Has anyone else seen or experienced this ?
> 

This does not sound like a client side issue to me. Most likely the server side
script differentiates between query arguments and request entity parameters. 

Oleg



> Thanks,
> Charlie
> csanders@hoovers.com

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


Mime
View raw message