Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhelp with C++ program to decrypt something from ASCII Pin
Pissedoffmathematician20-Oct-08 13:16
Pissedoffmathematician20-Oct-08 13:16 
AnswerRe: help with C++ program to decrypt something from ASCII Pin
Richard Andrew x6420-Oct-08 14:42
professionalRichard Andrew x6420-Oct-08 14:42 
QuestionRe: help with C++ program to decrypt something from ASCII Pin
CPallini20-Oct-08 20:54
mveCPallini20-Oct-08 20:54 
AnswerRe: help with C++ program to decrypt something from ASCII Pin
Rajesh R Subramanian20-Oct-08 21:18
professionalRajesh R Subramanian20-Oct-08 21:18 
JokeRe: help with C++ program to decrypt something from ASCII Pin
CPallini20-Oct-08 21:26
mveCPallini20-Oct-08 21:26 
AnswerRe: help with C++ program to decrypt something from ASCII Pin
CPallini20-Oct-08 21:30
mveCPallini20-Oct-08 21:30 
AnswerRe: help with C++ program to decrypt something from ASCII Pin
KarstenK20-Oct-08 21:31
mveKarstenK20-Oct-08 21:31 
QuestionHow to extract HTML headers from CHttpFile? QueryInfo method is not working! Pin
Member 228101420-Oct-08 12:37
Member 228101420-Oct-08 12:37 
Hello all,

I'm facing a problem with CHttpFile, and exactly with its QueryInfo method. I'm trying to connect to a server which gives an id to the 'conversation' that will take place; so I POST some data, and it responds me with an HTML page with an id that I can later reuse for asking more data.

The problem is that this id has been put in the HTML header, and the HTML data is empty. So after I called
CHttpFile *file=myConnection->OpenRequest and everything went allright, file->Read doesn't return anything.
I had instead to make something like this:

CString headers;
file->QueryInfo(HTTP_QUERY_RAW_HEADERS_CRLF,headers);

to get the headers and then parse them to find the id I'm searching.

Well, now the problem is that this id has been put in the Content-type header; intercepting the raw HTML data, I saw things look like: "Content-type: multipart/x-mixed-replace\r\n\r\nid=the_id_i_want_to_have\r\n".

Sorry to say, but headers comes out to be "HTTP/1.0 200 Push Service\r\nContent-type: multipart/x-mixed-replace\r\n\r\n"; it ends exactly at the beginning of the section I'm interested to.

I tried all I could to get the whole headers out of a CHttpFile, using all the HTTP_QUERY_XXX constants, but with no success.

Can somebody help me?

Thank you very much,
Piero.
QuestionHow to write C++ application that with no GUI and no Console ? Pin
Yanshof20-Oct-08 12:36
Yanshof20-Oct-08 12:36 
AnswerRe: How to write C++ application that with no GUI and no Console ? Pin
Naveen20-Oct-08 14:25
Naveen20-Oct-08 14:25 
AnswerRe: How to write C++ application that with no GUI and no Console ? Pin
Richard Andrew x6420-Oct-08 14:40
professionalRichard Andrew x6420-Oct-08 14:40 
QuestionRe: How to write C++ application that with no GUI and no Console ? Pin
CPallini20-Oct-08 20:55
mveCPallini20-Oct-08 20:55 
AnswerRe: How to write C++ application that with no GUI and no Console ? Pin
Mark Salsbery21-Oct-08 5:35
Mark Salsbery21-Oct-08 5:35 
QuestionSetWindowPos question Pin
WayneK10020-Oct-08 11:21
WayneK10020-Oct-08 11:21 
AnswerRe: SetWindowPos question Pin
Iain Clarke, Warrior Programmer21-Oct-08 1:51
Iain Clarke, Warrior Programmer21-Oct-08 1:51 
QuestionWrite to console Pin
rrrado20-Oct-08 6:46
rrrado20-Oct-08 6:46 
QuestionRe: Write to console Pin
David Crow20-Oct-08 7:31
David Crow20-Oct-08 7:31 
AnswerRe: Write to console Pin
rrrado20-Oct-08 22:29
rrrado20-Oct-08 22:29 
GeneralRe: Write to console Pin
David Crow21-Oct-08 3:01
David Crow21-Oct-08 3:01 
GeneralRe: Write to console Pin
rrrado21-Oct-08 4:19
rrrado21-Oct-08 4:19 
QuestionAllocate more than 2GB using VirtualAlloc or new Pin
umarcool20-Oct-08 5:39
umarcool20-Oct-08 5:39 
AnswerRe: Allocate more than 2GB using VirtualAlloc or new Pin
David Crow20-Oct-08 7:32
David Crow20-Oct-08 7:32 
AnswerRe: Allocate more than 2GB using VirtualAlloc or new Pin
Cedric Moonen20-Oct-08 8:35
Cedric Moonen20-Oct-08 8:35 
GeneralRe: Allocate more than 2GB using VirtualAlloc or new Pin
umarcool21-Oct-08 0:17
umarcool21-Oct-08 0:17 
QuestionRegarding Auto Logon Pin
H4u3220-Oct-08 5:12
H4u3220-Oct-08 5:12 

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.