aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Problem in POST request using HTTPClient Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Problem in POST request using HTTPClient" Watch "Problem in POST request using HTTPClient" New topic
Author

Problem in POST request using HTTPClient

Shubham Guptas
Greenhorn

Joined: May 02, 2010
Posts: 9
I wrote load test application for java web application running on tomcat server.

I am using HTTPClient for sending XML request. The code I am using is as follows:



The above code is thread body and I am running 200 threads. but for some requests I am getting following exception



Any help would be appreciated. Thanks
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

From the trace I observe that, sometimes your application gets connection timed out.


S.D. MADHAN
Not many get the right opportunity !
Shubham Guptas
Greenhorn

Joined: May 02, 2010
Posts: 9
Madhan Sundararajan Devaki wrote:From the trace I observe that, sometimes your application gets connection timed out.


so silly of me....Thanks....I increased connection time out and it worked....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in POST request using HTTPClient
 
Similar Threads
[Apache Httpclient] Connection refused
totally stumped by synchronization.afterCommit error
Deprecated function authscheme(). Need Help to resolve this issue
I/0 exception in WebSphere 7.0
Running application on web start