THe question is, can I control the protocol from the CGI, for example if the explorer sends request in HTTPS, can I somehow return my answer in HTTP?
You can't. The "protocol" is an agreement between the client and the server about how they will communicate. If the browser makes an HTTPS request, you can bet it's expecting an HTTPS response. An HTTP response won't be a valid HTTPS response.
Tomte's suggestion to use a redirect might help you but it doesn't really answer the question. The redirect response will be HTTPS, not HTTP. The redirect itself is a suggestion to the browser to make another request to a non-secured server.
I don't think it would be advisable to downgrade a response to a secure request anyway. What are you really trying to solve?
-sauoq "My two cents aren't worth a dime.";
In reply to Re: HTTP and CGI
by sauoq
in thread HTTP and CGI
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |