Simulate post at webpage
-
I want to simulate an input and post into a web page and than download the web page that is opened after the correct input! The web page exists of an user input form with userid and password, after input the correct data and pressing the submit button another web page will be opened. I have tried to download the web page with the following code (I am using the CAmHttpSocket class at http://www.codeproject.com/internet/amhttputils.asp): int _tmain(int argc, _TCHAR* argv[]) { CAmHttpSocket http; char* p = "userid=xxx&pwd=xxx"; char* s = http.GetPage( _T("https://orawww.uibk.ac.at/public\_prod/owa/pk205.frame\_lv\_termine\_lzk?termin\_id\_in=3678"), true, p, strlen(p)); int i = http.GetPageStatusCode(); printf("%s\n", s); printf("%d\n", i); return 0; } My problem is that I don't know how to simulate the input and pressing the submit button! How can I pass the userid and the possword? Regards, Daniel. -- FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE. ;) -- modified at 4:46 Thursday 15th September, 2005