Jump to content

Posting to SSL


haku

Recommended Posts

I have a form. I've set the action of the form to HTTPS like this:

 

<form method="post" action="https://www.example.com">

 

But when I use the firefox Live HTTP Headers plugin to check the headers, it shows the posted URL being HTTP and not HTTPS.

 

Does anyone have any idea of what I'm missing? Unfortunately, I can't post a link as the site is still in development.

Link to comment
Share on other sites

Turns out you can post to an SSL page from a non-SSL page. I had a javascript issue - the login form I'm creating is in a popup window that fades in when a link is clicked. The action was properly set to HTTPS, but I wasn't returning FALSE on an onclick action. Not sure exactly why that meant that it wasn't posting to HTTPS, but that's what the result was. Returning FALSE solved the problem, and the form now properly posts to the SSL page.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.