Multi-threaded requests

Supporting Artefacts

Apache Commons Http Client - 2 minute tutorial

Basic usage : How to make a POST http request

This example shows how to make an HTTP POST request to an http server.

It is mostly same as making an HTTP GET request except for the use of class org.apache.commons.httpclient.methods.PostMethod. The parameters are set using the class org.apache.commons.httpclient.NameValuePair and setting then in the request object using setRequestBody() metghod of PostMethod.