wood burning stoves 2.0*
The moose likes Java in General and the fly likes Web Page query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Web Page query" Watch "Web Page query" New topic
Author

Web Page query

Bharadwaj Adepu
Ranch Hand

Joined: Dec 30, 2007
Posts: 99
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


SCJP 1.5
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
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

Joined: Mar 28, 2007
Posts: 403
Hi,

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

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


Cheers!!!
Ujjwal B Soni <baroda, gujarat, india> <+919909981973>
"Helping hands are better than praying lips......"
Alok Kushwah
Ranch Hand

Joined: Jul 10, 2007
Posts: 31
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Page query
 
Similar Threads
Creating a web service client
JMS related architecture question
problem writing ImageServlet?
Sr. Java Developer (Work from home)
Streaming datachunks e.g live audio /video from client browser to the server