Click here to Skip to main content
15,908,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialogs - Background Color and Size/Positions Pin
Reagan Conservative1-Aug-06 7:02
Reagan Conservative1-Aug-06 7:02 
GeneralRe: Dialogs - Background Color and Size/Positions Pin
Sarath C1-Aug-06 17:33
Sarath C1-Aug-06 17:33 
AnswerRe: Dialogs - Background Color and Size/Positions Pin
Hamid_RT2-Aug-06 9:41
Hamid_RT2-Aug-06 9:41 
QuestionCString to LPVOID Pin
EpicYeti1-Aug-06 5:28
EpicYeti1-Aug-06 5:28 
AnswerRe: CString to LPVOID Pin
David Crow1-Aug-06 5:38
David Crow1-Aug-06 5:38 
GeneralRe: CString to LPVOID Pin
EpicYeti1-Aug-06 5:52
EpicYeti1-Aug-06 5:52 
QuestionRe: CString to LPVOID Pin
David Crow1-Aug-06 5:59
David Crow1-Aug-06 5:59 
AnswerRe: CString to LPVOID Pin
EpicYeti1-Aug-06 7:03
EpicYeti1-Aug-06 7:03 
what does work is something like this:

CString header = _T("Content-Type: application/x-www-form-urlencoded");
CString m_data = _T("target=wininet");

char data[] = "target=wininet";
LPVOID postdata=data;
		
pFile->SendRequest(header, header.GetLength(), stuff, mdata.GetLength)


basically i'm sending to the URL www.codeproject.com the data to the search form on the main page. The code above will return an html file with the search results.

The calls to SendRequest() with the double cast and the call to GetBuffer() both return html files that have no search results. I'm inferring from this that no post data got sent.
QuestionRe: CString to LPVOID Pin
David Crow1-Aug-06 7:22
David Crow1-Aug-06 7:22 
AnswerRe: CString to LPVOID Pin
EpicYeti1-Aug-06 7:35
EpicYeti1-Aug-06 7:35 
GeneralRe: CString to LPVOID Pin
David Crow1-Aug-06 7:43
David Crow1-Aug-06 7:43 
GeneralRe: CString to LPVOID [modified] Pin
EpicYeti1-Aug-06 9:35
EpicYeti1-Aug-06 9:35 
GeneralRe: CString to LPVOID Pin
Zac Howland1-Aug-06 8:43
Zac Howland1-Aug-06 8:43 
GeneralRe: CString to LPVOID Pin
EpicYeti1-Aug-06 9:38
EpicYeti1-Aug-06 9:38 
GeneralRe: CString to LPVOID Pin
Zac Howland1-Aug-06 10:02
Zac Howland1-Aug-06 10:02 
GeneralRe: CString to LPVOID Pin
EpicYeti1-Aug-06 10:57
EpicYeti1-Aug-06 10:57 
GeneralRe: CString to LPVOID Pin
Zac Howland1-Aug-06 6:05
Zac Howland1-Aug-06 6:05 
AnswerRe: CString to LPVOID Pin
Zac Howland1-Aug-06 5:51
Zac Howland1-Aug-06 5:51 
AnswerRe: CString to LPVOID Pin
Michael Dunn1-Aug-06 19:37
sitebuilderMichael Dunn1-Aug-06 19:37 
Questioniostream.h in Visual Studio 2005 [modified] Pin
Jay031-Aug-06 5:27
Jay031-Aug-06 5:27 
AnswerRe: iostream.h in Visual Studio 2005 Pin
Zac Howland1-Aug-06 5:52
Zac Howland1-Aug-06 5:52 
AnswerRe: iostream.h in Visual Studio 2005 Pin
Sarath C1-Aug-06 6:59
Sarath C1-Aug-06 6:59 
AnswerRe: iostream.h in Visual Studio 2005 Pin
Michael Dunn1-Aug-06 19:37
sitebuilderMichael Dunn1-Aug-06 19:37 
QuestionDebug runs, Release crashes. Why? Pin
Hotte1-Aug-06 5:14
Hotte1-Aug-06 5:14 
AnswerRe: Debug runs, Release crashes. Why? Pin
toxcct1-Aug-06 5:20
toxcct1-Aug-06 5:20 

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.