Need Help on Internet Programing
-
Hello all, I am developing application to open http connection. I have used CInternetSession, CHttpConnection, CHttpFile to make Application. My Code is as Bellow:
CInternetSession iSession; CHttpConnection *httpCon = iSession.GetHttpConnection(L"localhost", 80, L"", L""); CHttpFile *httpFile = httpCon->OpenRequest(L"POST", L"test/test.php"); BOOL x = httpFile->SendRequest();
This code works fine for me. Now the Problem is that i want to pass parameters using POST method to my request. So is there anybody who can solve my problem. Any help will be highly appreciated Thanks.Manish Patel. B.E. - Information Technology.
-
Hello all, I am developing application to open http connection. I have used CInternetSession, CHttpConnection, CHttpFile to make Application. My Code is as Bellow:
CInternetSession iSession; CHttpConnection *httpCon = iSession.GetHttpConnection(L"localhost", 80, L"", L""); CHttpFile *httpFile = httpCon->OpenRequest(L"POST", L"test/test.php"); BOOL x = httpFile->SendRequest();
This code works fine for me. Now the Problem is that i want to pass parameters using POST method to my request. So is there anybody who can solve my problem. Any help will be highly appreciated Thanks.Manish Patel. B.E. - Information Technology.
See this article http://support.microsoft.com/?kbid=165298[^] Use SendRequest to pass the parameters. :) Amar