Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sending https post request from servlet to another server

 
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic