Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Storing variables in a program Pin
OBRon28-Jun-04 10:09
OBRon28-Jun-04 10:09 
GeneralRe: Storing variables in a program Pin
ixcaliber28-Jun-04 10:20
ixcaliber28-Jun-04 10:20 
GeneralRe: Storing variables in a program Pin
palbano28-Jun-04 10:56
palbano28-Jun-04 10:56 
GeneralRe: Storing variables in a program Pin
John M. Drescher28-Jun-04 16:50
John M. Drescher28-Jun-04 16:50 
GeneralGood registry tutorials? Pin
ixcaliber28-Jun-04 10:56
ixcaliber28-Jun-04 10:56 
GeneralRe: Good registry tutorials? Pin
OBRon28-Jun-04 11:07
OBRon28-Jun-04 11:07 
GeneralThx Pin
ixcaliber28-Jun-04 12:10
ixcaliber28-Jun-04 12:10 
GeneralUsing CInternetFile::WriteString() Pin
brdavid28-Jun-04 9:19
brdavid28-Jun-04 9:19 
(still stuck Frown | :(

I am having a bit of trouble running CInternetFile::WriteString() and seeing results appear on the server file I am trying to change.

Here is a snipet of code that open the HTTP Connection, then opens a CInternetFile pointer then sends a request to write data (I hope). "strData" is the data I am sending.



pServer = session->GetHttpConnection("www.myserver.com", 80, "username", "password");

pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_POST, "/folder/file.txt");

pFile->SendRequestEx(strData.GetLength());
pFile->QueryInfoStatusCode(dwRet);

pFile->WriteString(strData);
pFile->EndRequest();


Does anyone see any problems with what I have here? I am kinda basing this off an example I found but the file I am trying to write to is not affected. The permissions on the file are set to a+rwx but I am wondering if there is something in the code I am missing or perhaps on the server. I can read from the file just fine. I just can't write to it.

Thanks!
GeneralRe: Using CInternetFile::WriteString() Pin
palbano28-Jun-04 9:36
palbano28-Jun-04 9:36 
GeneralRe: Using CInternetFile::WriteString() Pin
brdavid28-Jun-04 9:51
brdavid28-Jun-04 9:51 
GeneralRe: Using CInternetFile::WriteString() Pin
OBRon28-Jun-04 10:00
OBRon28-Jun-04 10:00 
GeneralRe: Using CInternetFile::WriteString() Pin
palbano28-Jun-04 11:03
palbano28-Jun-04 11:03 
GeneralRe: Using CInternetFile::WriteString() Pin
palbano28-Jun-04 11:33
palbano28-Jun-04 11:33 
GeneralVC++ Tool for building AfxMessageBox Pin
brdavid28-Jun-04 8:16
brdavid28-Jun-04 8:16 
GeneralRe: VC++ Tool for building AfxMessageBox Pin
John R. Shaw28-Jun-04 18:51
John R. Shaw28-Jun-04 18:51 
GeneralRe: VC++ Tool for building AfxMessageBox Pin
brdavid29-Jun-04 0:41
brdavid29-Jun-04 0:41 
GeneralRe: VC++ Tool for building AfxMessageBox Pin
vladfein29-Jun-04 7:21
vladfein29-Jun-04 7:21 
GeneralRe: VC++ Tool for building AfxMessageBox Pin
brdavid29-Jun-04 9:20
brdavid29-Jun-04 9:20 
Question"urgent""""how to read a file ?? Pin
rogerlew28-Jun-04 7:59
rogerlew28-Jun-04 7:59 
AnswerRe: "urgent""""how to read a file ?? Pin
vcplusplus28-Jun-04 8:29
vcplusplus28-Jun-04 8:29 
AnswerRe: "urgent""""how to read a file ?? Pin
palbano28-Jun-04 8:31
palbano28-Jun-04 8:31 
GeneralRe: "urgent""""how to read a file ?? Pin
OBRon28-Jun-04 9:02
OBRon28-Jun-04 9:02 
GeneralRe: "urgent""""how to read a file ?? Pin
Johan Rosengren28-Jun-04 9:35
Johan Rosengren28-Jun-04 9:35 
GeneralRe: "urgent""""how to read a file ?? Pin
Jörgen Sigvardsson28-Jun-04 10:12
Jörgen Sigvardsson28-Jun-04 10:12 
GeneralRe: "urgent""""how to read a file ?? Pin
Nick Parker28-Jun-04 10:59
protectorNick Parker28-Jun-04 10:59 

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.