How to send URL in Post request from local server to remote server?
I am having currently a Portal client(created using JSP and Servlet) and Portal server(using Tomcat).
Now i want:
1> How to establish a Connection to another server remotely?What to do in code???
2> How to send a Post Request containing- "https://IPAddress:Port/contextpath/parameters"
to remote server for execution. Here IPAddress is for Remote Tomcat server.
Which method to implement????
3> How to implement SSO in remote server so that my SSO in remote server validate user credentials after sending another request to Portal Server.
What is core logic behind the scene?