File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using POST in servlet

 
Ronno
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking to do a POST request to a URL from within a servlrt.

Any ideas ?

Thanks,

Ron
 
K Riaz
Ranch Hand
Posts: 375
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, you want to push data to another server. You would probably need something like HttpClient to talk to the web server and create a POST request. You can also use HttpURLConnection from the JDK.
[ May 17, 2005: Message edited by: Kashif Riaz ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic