Click here to Skip to main content
15,886,069 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: about Solution habit Pin
Blake Miller24-Feb-06 5:19
Blake Miller24-Feb-06 5:19 
QuestionCAsyncSocket::OnReceive not getting called Pin
nsrsetty23-Feb-06 18:07
nsrsetty23-Feb-06 18:07 
QuestionCHttpConnection - Post method Pin
vivek.s.vivek23-Feb-06 17:56
vivek.s.vivek23-Feb-06 17:56 
AnswerRe: CHttpConnection - Post method Pin
jigneshrpatel23-Feb-06 18:46
jigneshrpatel23-Feb-06 18:46 
GeneralRe: CHttpConnection - Post method Pin
vivek.s.vivek23-Feb-06 21:36
vivek.s.vivek23-Feb-06 21:36 
GeneralRe: CHttpConnection - Post method Pin
ThatsAlok26-Feb-06 18:48
ThatsAlok26-Feb-06 18:48 
QuestionCHttpConnection web request for post method Pin
murali_utr23-Feb-06 17:40
murali_utr23-Feb-06 17:40 
AnswerRe: CHttpConnection web request for post method Pin
murali_utr23-Feb-06 23:02
murali_utr23-Feb-06 23:02 
I Find the solution. I think this one is useful to all. i found this on following url http://support.microsoft.com/kb/q165298/[^]

In many cases, the server does not respond appropriately if a Content-Type is not specified. For example, the Active Server Pages component of IIS 3.0 actually checks this header specifically for 'application/x-www-form- urlencoded' before adding form variables to the "Request.Form" object. This MIME/Content-Type indicates that the data of the request is a list of URL- encoded form variables. URL-encoding means that space character (ASCII 32) is encoded as '+', special character such '!' encoded in hexadecimal form as '%21'.

Here is a snippet of code that uses the MFC WinInet classes to simulate a Form POST request: CString strHeaders =
_T("Content-Type: application/x-www-form-urlencoded");
// URL-encoded form variables -
// name = "John Doe", userid = "hithere", other = "P&Q"
CString strFormData = _T("name=John+Doe&userid=hithere&other=P%26Q");

CInternetSession session;
CHttpConnection* pConnection =
session.GetHttpConnection(_T("ServerNameHere"));
CHttpFile* pFile =
pConnection->OpenRequest(CHttpConnection::HTTP_VERB_POST,
_T("FormActionHere"));
BOOL result = pFile->SendRequest(strHeaders,
(LPVOID)(LPCTSTR)strFormData, strFormData.GetLength());



Have A Nice Day!
Murali.M
QuestionA Question On GDI+ Pin
Shuang. Wu23-Feb-06 17:39
Shuang. Wu23-Feb-06 17:39 
QuestionQuestion regarding SafeArrays Pin
godspeed12323-Feb-06 17:39
godspeed12323-Feb-06 17:39 
AnswerRe: Question regarding SafeArrays Pin
Michael Dunn23-Feb-06 17:43
sitebuilderMichael Dunn23-Feb-06 17:43 
Questionhelp++ Pin
jobits1223-Feb-06 15:29
jobits1223-Feb-06 15:29 
AnswerRe: help++ Pin
Michael Dunn23-Feb-06 17:40
sitebuilderMichael Dunn23-Feb-06 17:40 
AnswerRe: help++ Pin
ThatsAlok26-Feb-06 18:10
ThatsAlok26-Feb-06 18:10 
Questionhelp c++ Pin
jobits1223-Feb-06 14:50
jobits1223-Feb-06 14:50 
AnswerRe: help c++ Pin
Ryan Binns23-Feb-06 15:00
Ryan Binns23-Feb-06 15:00 
AnswerRe: help c++ Pin
BadKarma23-Feb-06 20:36
BadKarma23-Feb-06 20:36 
AnswerRe: help c++ Pin
ThatsAlok23-Feb-06 21:42
ThatsAlok23-Feb-06 21:42 
QuestionRe: help c++ Pin
David Crow24-Feb-06 3:14
David Crow24-Feb-06 3:14 
QuestionEnding Thread Problems Pin
tbrake23-Feb-06 14:03
tbrake23-Feb-06 14:03 
AnswerRe: Ending Thread Problems Pin
Ryan Binns23-Feb-06 14:10
Ryan Binns23-Feb-06 14:10 
GeneralRe: Ending Thread Problems Pin
tbrake23-Feb-06 14:17
tbrake23-Feb-06 14:17 
GeneralRe: Ending Thread Problems Pin
Ryan Binns23-Feb-06 14:50
Ryan Binns23-Feb-06 14:50 
GeneralRe: Ending Thread Problems Pin
Blake Miller24-Feb-06 5:26
Blake Miller24-Feb-06 5:26 
QuestionHow to display the value of a variable in a MessageBox? Pin
vinceher23-Feb-06 10:18
vinceher23-Feb-06 10:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.