Forum: Ruby on Rails POST from http to https

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
harm (Guest)
on 2009-05-11 23:06
(Received via mailing list)
Dear list,

I want to POST data from a normal http page to a https controller. I
set up SSL and what not and that works. When I go to
the site loads nicely. When I go to http://projectname.local the site
loads nicely as well.

On that page however I have a form which I want POSTing to a httpS
controller, I got so far as to create the form:
<form onsubmit="new Ajax.Request('https://projectname.local/
provider_users', {asynchronous:true, evalScripts:true,
parameters:Form.serialize(this)}); return false;" method="post"

Now the strangest thing happens (or doesn't). If I click the submit
button _nothing_ happens. Nothing in Firebug, nothing in my apache
log, nothing in my development log, nothing in Safari. Nothing.

When I load the page in pure https things work. One odd thing is that
the 'request.ssl?' returns false even when I see the request going
thru https. But this might be unrelated.

It IS possible to POST to https from a http connection right?

Any help would be greatly appreciated.

Shandy N. (Guest)
on 2009-05-11 23:30
Is there any errors being thrown in your log?
Harm (Guest)
on 2009-05-12 01:42
(Received via mailing list)
None, the request doesn't even register.

On May 11, 9:30 pm, Shandy N. <removed_email_address@domain.invalid>
This topic is locked and can not be replied to.