Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Page query

 
Bharadwaj Adepu
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP Website(Site1) has to send data to an HTTPS website(Site2), Site 2 processes the data, and wants to send the result back to Site1

Q1. How is the session maintained?
Q2.How is the data transfered via POST or Response.Redirect
 
Vikas Kapoor
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bharadwaj,

When domain changes session is vanished. The only way I know is passing data in query string. POST doesn't work only GET i.e. using query string.
(I am not very much sure.)
 
ujjwal soni
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You can maintain session on other domain via query strings or using database.....

for example www.xyz.com?username=ujjwal&password=xyz

 
Alok Kushwah
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here one website is working as client to otherwebsite.

Solution 1:

Here HTTP website (application C) is client of HTTPS website (application S).

application C have to use httpClient (http://hc.apache.org/httpclient-3.x/) and submit the request to application S. you can use POST method also.

***************************************************

Solution 2:

I will go forward and say your HTTPS website is exposing webservice.

Expose webservice from application S. User web service client in apllication C to consume the webservice.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic