Setting the request body

Top  Previous  Next

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"));





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC