• Post Reply Bookmark Topic Watch Topic
  • New Topic

sending https post request from servlet to another server  RSS feed

 
Abhishek Yadav
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have an application for which front end is in J2ME and backend is implemented using servlet. I am using tomcat 6. I have a requirement of sending https POST request to another server(Payment Server) from my servlet code. Please guide me, how to do it. Thanks in advance.

Abhishek Yadav
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use java.net.URLConnection or Apache Commons HttpClient.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!