Setting the request body |
Under certain conditions you may want to set the body of the HTTP request. This is especially useful when transmitting XML or SOAP data using the HTTP protocol.
Example
// create the request HttpRequest request = new HttpRequest("http://www.myserver.com/servlet/Xml");
// set request body request.setBody(new File("data.xml")); |