cancel
Showing results for 
Search instead for 
Did you mean: 

Java Library to Create an HTTP request with payload

Former Member
0 Kudos

Hi All,

I think most of you would have used the HTTP Client test tool which sends an XML document as a an HTTP payload to the integration server. I would like to write a stand alone Java application which could do this. Does somebody know of any java library which can create an HTTP request with a given payload and send it over the network to a specified URL?

Thanks,

Sandeep

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sandeep,

You can achieve that using the URLCOnnection class of Java. It works fine (I have done reading, it should be simple for writing as well)

Check these links

http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html

http://www.javaworld.com/javaworld/javatips/jw-javatip42.html

Hope this helps

Regards

Vishnu