in reply to Redirecting to HTTPS

If the form itself is on an insecure page, and you want the form to be submitted to a secture script, you can simply set the action= to the HTTPS URL.As for redirecting to a secure site, CGI.pm's redirection works fine for HTTPS URLs:
print $query->redirect('https://...') unless ($cgi->https());

Replies are listed 'Best First'.
Re^2: Redirecting to HTTPS
by swaroop.m (Monk) on Oct 01, 2004 at 05:17 UTC
    Hi,
    I have the form and submit to say http://myserver/mysite/logon.cgi then ,i redirect using CGI.pm , then would the context i hold in request ,be carried over to the HTTPS?
    Regards,
    Swaroop

      How do you pass session around? hidden fields: works. cookies: I think http cookies are also sent to https. url field: works.

      Keep in mind that login.cgi should not *submit* to http: and then redirect to https:... It's already sent the login info in the clear!