Click here to Skip to main content
15,915,832 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is the max length of tree branche? Pin
bilas15-Feb-05 11:03
bilas15-Feb-05 11:03 
Generalcheck if PC connects to the internet Pin
includeh1015-Feb-05 5:49
includeh1015-Feb-05 5:49 
GeneralRe: check if PC connects to the internet Pin
Ravi Bhavnani15-Feb-05 8:58
professionalRavi Bhavnani15-Feb-05 8:58 
GeneralRe: check if PC connects to the internet Pin
David Crow15-Feb-05 10:57
David Crow15-Feb-05 10:57 
GeneralRe: check if PC connects to the internet Pin
includeh1015-Feb-05 22:48
includeh1015-Feb-05 22:48 
QuestionWinSOCK and HTTP POST - how to send/receive data? Pin
Peter Laursen15-Feb-05 5:08
Peter Laursen15-Feb-05 5:08 
AnswerRe: WinSOCK and HTTP POST - how to send/receive data? Pin
Ravi Bhavnani15-Feb-05 9:01
professionalRavi Bhavnani15-Feb-05 9:01 
GeneralRe: WinSOCK and HTTP POST - how to send/receive data? Pin
humps15-Feb-05 9:44
humps15-Feb-05 9:44 
Dude
I think you are just missing the Content-Length specification in your POST request header. This is needed so the server knows when the content-data ends (\r\n\r\n is only the terminator for the header). Try sending something like this to the server:

POST /logon HTTP/1.1
Host: peer200:6002
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://peer200:6002/logon
Content-Type: application/x-www-form-urlencoded
Content-Length: 54

USERNAME=Administrator&PASSWORD=xxxxxxxx&SUBMIT=SUBMIT


...here the length of the content data (USERNAME ....SUBMIT is exactly 54 bytes). Hope this helps !


Thanks,

Neil Humphreys.
GeneralRe: WinSOCK and HTTP POST - how to send/receive data? Pin
Peter Laursen16-Feb-05 0:05
Peter Laursen16-Feb-05 0:05 
GeneralRe: WinSOCK and HTTP POST - how to send/receive data? Pin
humps16-Feb-05 9:09
humps16-Feb-05 9:09 
General#include & Enviornment variables Pin
BlueCrack15-Feb-05 5:04
BlueCrack15-Feb-05 5:04 
GeneralHelp changing the position of the text cursor in an edit box Pin
Bi0Mutati0n15-Feb-05 5:01
Bi0Mutati0n15-Feb-05 5:01 
GeneralRe: Help changing the position of the text cursor in an edit box Pin
basementman15-Feb-05 5:38
basementman15-Feb-05 5:38 
GeneralRe: Help changing the position of the text cursor in an edit box Pin
Bi0Mutati0n15-Feb-05 6:04
Bi0Mutati0n15-Feb-05 6:04 
GeneralRe: Help changing the position of the text cursor in an edit box Pin
Blake Miller15-Feb-05 6:19
Blake Miller15-Feb-05 6:19 
Generalauto login website Pin
ThinkingPrometheus15-Feb-05 3:50
ThinkingPrometheus15-Feb-05 3:50 
GeneralRe: auto login website Pin
Ravi Bhavnani15-Feb-05 9:05
professionalRavi Bhavnani15-Feb-05 9:05 
GeneralRe: auto login website Pin
ThinkingPrometheus15-Feb-05 20:09
ThinkingPrometheus15-Feb-05 20:09 
GeneralRe: auto login website Pin
Ravi Bhavnani16-Feb-05 2:06
professionalRavi Bhavnani16-Feb-05 2:06 
GeneralRe: auto login website Pin
humps15-Feb-05 9:49
humps15-Feb-05 9:49 
Questionwin32: SetSysColors for a single window/process? Pin
cybertank15-Feb-05 3:44
cybertank15-Feb-05 3:44 
AnswerRe: win32: SetSysColors for a single window/process? Pin
rocky_pulley15-Feb-05 4:31
rocky_pulley15-Feb-05 4:31 
Generalstop sub process Pin
includeh1015-Feb-05 2:50
includeh1015-Feb-05 2:50 
General8.3 format Pin
includeh1015-Feb-05 2:32
includeh1015-Feb-05 2:32 
GeneralRe: 8.3 format Pin
Antony M Kancidrowski15-Feb-05 2:40
Antony M Kancidrowski15-Feb-05 2:40 

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.