Forum: Ruby on Rails POST from http to https

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2101d75ccd71c5dfb984991a7ba53b9b?d=identicon&s=25 harm (Guest)
on 2009-05-11 21: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
https://projectname.local
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"
action="https://projectname.local/provider_users">

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.

Harm
C4bfcc81ac9281cb905f38e97e4d4e0b?d=identicon&s=25 Shandy Nantz (snantz)
on 2009-05-11 21:30
Is there any errors being thrown in your log?
2101d75ccd71c5dfb984991a7ba53b9b?d=identicon&s=25 Harm (Guest)
on 2009-05-11 23:42
(Received via mailing list)
None, the request doesn't even register.

On May 11, 9:30 pm, Shandy Nantz <rails-mailing-l...@andreas-s.net>
This topic is locked and can not be replied to.