HTTP Post Question
-
OK... I basically understand how the 'get' portion of a HTTP connection works... but now I have another question. I am writing a program that will automaticalliy go through various CGI pages, entering the necessary input and parsing the output. I should be able to handle the parsing, but my question lies in how exactly to 'post' the variables from a form to the CGI page. EX: The first page has a form that posts a text field named 'Account' and a password field named 'Password' to "main.cgi". I assume you would get a CHttpFile* that is to the main.cgi and do: http_file->SendRequest But it is here that I am not sure what to fill in... What headers would I need to send? And MSDN says that the lpOptional would usually be the information for a POST operation... but what exactly would I put there? Thanks for any help you can give! Adam cabadam@houston.rr.com