Go Back   CodingForums.com > :: Computing & Sciences > Computer Programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-02-2004, 09:27 AM   PM User | #1
Fatman
Regular Coder

 
Join Date: Apr 2003
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Fatman is an unknown quantity at this point
Using MFc to simulate HTTP POST

Anyone know much about this:

Code:
CString strHeaders = _T("Content-Type: multipart/form-data ");

   CString strFormData = _T("submit1=Submit");

   CInternetSession session;
   CHttpConnection* pConnection = session.GetHttpConnection(_T("www.url.com"));
   CHttpFile* pFile =pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST,_T("/folder/process.php"));
   BOOL result = pFile->SendRequest(strHeaders,(LPVOID)(LPCTSTR)strFormData, strFormData.GetLength());
doesnt seem to work???

any ideas?
__________________
Andrew Hall
Fatman is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:13 AM.


Advertisement
Log in to turn off these ads.