• Post Reply Bookmark Topic Watch Topic
  • New Topic

Http Post Using java.net  RSS feed

 
Jaideep Joshi
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have to send an XML string to a url using http post. I have to do it in either a plain java class or through a session ejb.
Anyone has any idea of how to do this using java.net package ?

Thanks in advance,
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you could write code to do POST, yourself. But why do that, when you can use a free third-party library:

Jakarta HttpClient
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
 
Jaideep Joshi
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, Jakarta HttpClient worked perfectly.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!