• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Https post but a http response?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Https post but a http response?
      • From: Wolfram Stebel <email@hidden>
  • Prev by Date: Re: EOModeler SQL generation
  • Next by Date: Enterprise Javabeans Framework Project Template
  • Previous by thread: Re: Creating helper classes for code pages
  • Next by thread: Re: Https post but a http response?
  • Index(es):
    • Date
    • Thread