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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to