Https post but a http response?
Https post but a http response?
- Subject: Https post but a http response?
- From: Dave Elsner <email@hidden>
- Date: Fri, 5 May 2006 15:35:21 +1000
Hi,
I'm trying to make a login form using HTTPS (from Chucks book page 102) So that the username and password are sent encrypted. I need the response page to be a normal HTTP page is this possible? how?
I've tried doing the code below but it still returns a HTTPS page.
public void appendToResponse(WOResponse aResponse, WOContext aContext) { super.appendToResponse(aResponse,aContext); if(isLoggedIn) { aResponse.setStatus(302); aResponse.setHeader("http://" + context().request().headerForKey("host") + context().componentActionURL(), "Location");
}
}
The reason I need to do this is I need to authenticate users on my server then redirect them to a 3rd party server, and currently the (HTTPS) page returned redirects them to the different domain and their browser gives an warrning that the website is sending your information over an unsecured connection that can be easily read by other people. So thought that if the page returned from the submit page is HTTP the browser won't complain about switching from HTTPS to HTTP.
- Dave
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden