File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

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

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

for example

Ujjwal B Soni <baroda, gujarat, india> <+918866008962>
"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 ( 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:
subject: Web Page query
It's not a secret anymore!