in reply to Re: Form over HTTPS
in thread Form over HTTPS

Hi Perlron, Thank you for your response. I think it would work if change to "GET" in instead of POST, because I tried to use URL to carry the paramets (e.g. https//www.mydomain.com/cgi-mod/program2.cgi?name=myname&passwd=mypassword), the server got the name and password and printed them out. My problem is that I need to get POST work with form, because we have more similar work (uploading data to server).

Replies are listed 'Best First'.
Re^3: Form over HTTPS
by perlron (Pilgrim) on Oct 30, 2014 at 20:21 UTC

    Yes. GET Request is typically for queries to the server. You would not want to send large data sets via a GET Query.
    As was mentioned , you can also see very conveniently each POST param and header that is being transmitted in your POST request to the server .
    If u are using FF, there is a Network Tab under tools
    for Chrome its under View->Developer Tools.
    This jist of what i am saying is that first check if information is going to the server via your request.
    You have to keep the Network tab open in the first place and THEN submit the data.
    If the data is going to the server, then as i mentioned i hope your SSL config for the web server eg : Apache is setup properly.
    As far as the Server Side script is concerned, the POST Data is accessible via STDIN handle. But for ReadParse() usage you should check this link . CGI.
    Here is a really nice article on beginner CGI Programming