Trying to capture POST method from Web Page
I have a C++ application that listens on a local port for incomming requests from web pages. We used to only listen for GET methods, which were easy, but now we want to listen for POST methods aswell, to get the data that was inserted into the text box on the web page. For some reason, when I click the submit button on the web page all I get is this :
POST /login.htm HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
What I'm not getting is the userName=Hello that is supposed to be comming through. Is anyone familiar enough with HTTP to know how to get the content of the webpage? The solution is going to have to work for at least Internet Explorer and Firefox. I've already discovered that by using IE to load up a cached page, I can click the submit button and successfully get the whole POST message, but since other browsers can't do this it's not a solution.