Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Howto draw text in rectangle ? Pin
PJ Arends2-Mar-03 9:06
professionalPJ Arends2-Mar-03 9:06 
AnswerRe: Howto draw text in rectangle ? Pin
PJ Arends2-Mar-03 9:17
professionalPJ Arends2-Mar-03 9:17 
GeneralAnti-aliased line with GDI Pin
bumper2-Mar-03 4:21
bumper2-Mar-03 4:21 
GeneralRe: Anti-aliased line with GDI Pin
Anders Molin2-Mar-03 4:40
professionalAnders Molin2-Mar-03 4:40 
GeneralRe: Anti-aliased line with GDI Pin
bumper2-Mar-03 4:44
bumper2-Mar-03 4:44 
GeneralRe: Anti-aliased line with GDI Pin
tilliagain2-Mar-03 23:21
susstilliagain2-Mar-03 23:21 
GeneralMFC Pin
Mohsen Kokabi2-Mar-03 4:19
Mohsen Kokabi2-Mar-03 4:19 
GeneralHTTP GET POST commands Pin
Kuniva2-Mar-03 2:46
Kuniva2-Mar-03 2:46 
Hello, i tried making this app that sends a GET or POST command to a forum server to post a message.
Normally you would use the POST command since thats just what you use to post stuff. But i had made a program before that used the GET command to post things instead of the POST command like this:

Normally:
POST http://www.<theforum>.com/cgi/addmessage HTTP/1.0
Referer: blablabla
Host: blablabla
Content-length: blablabla
Cookie: blablabla
(these are not important)

fid=31613&name=me&subject=hello&message=mymessage // <--- the actual data

So thats what a normal POST command would look like, but you could also use GET for this like this:
GET http://www.<theforum>.com/cgi/addmessage?fid=31613&name=me&subject=hello&message=mymessage HTTP/1.0 // So basically just add a "?" to the url and put the data behind it //
Referer: blablabla
Host: blablabla
Cookie: blablabla
(the normal stuff again, not important, i know how to work this)


Now the problem is, i tried both these methods to post something, no cookies were involved and yes i do have a proxy but i just posted it there and that should work, because it does for the other application i wrote once, but it just doesnt seem to work for this one, now does anyone have any idea of what could be the cause, i was thinking maybe its the server, because you see, what i do is i build up a socket, i connect to my proxy, send the GET or POST header and i disconnect. Now this worked fine for my other program (where i used the GET to post data by the way) but it doesnt work here, so i thought maybe its because the server needs to terminate the connection and not me or otherwise it wont process the data sent? So i would have to receive on the socket i used for sending first and put it in a buffer? Or does this have nothing to do with it? Any ideas what might be causing it to fail?

Thanks for your help

Kuniva
--------------------------------------------
GeneralRe: HTTP GET POST commands Pin
Anonymous2-Mar-03 3:14
Anonymous2-Mar-03 3:14 
GeneralRe: HTTP GET POST commands Pin
Stephane Rodriguez.2-Mar-03 3:17
Stephane Rodriguez.2-Mar-03 3:17 
GeneralRe: HTTP GET POST commands Pin
Kuniva2-Mar-03 3:34
Kuniva2-Mar-03 3:34 
GeneralMBCS filenames Pin
Member 1307761-Mar-03 23:33
Member 1307761-Mar-03 23:33 
GeneralRe: MBCS filenames Pin
Navin2-Mar-03 2:24
Navin2-Mar-03 2:24 
GeneralTAPI Pin
urid1-Mar-03 22:58
urid1-Mar-03 22:58 
GeneralRe: TAPI Pin
Michael P Butler2-Mar-03 0:18
Michael P Butler2-Mar-03 0:18 
GeneralTwo Frames Pin
ROK_RShadow1-Mar-03 19:32
ROK_RShadow1-Mar-03 19:32 
GeneralPlease help me : Window's RGN Pin
jedyking1-Mar-03 19:08
jedyking1-Mar-03 19:08 
QuestionLVN_ITEMCHANGED not sent? Pin
GWENJi1-Mar-03 17:34
GWENJi1-Mar-03 17:34 
AnswerRe: LVN_ITEMCHANGED not sent? Pin
peterchen2-Mar-03 4:46
peterchen2-Mar-03 4:46 
GeneralRe: LVN_ITEMCHANGED not sent? Pin
GWENJi2-Mar-03 7:24
GWENJi2-Mar-03 7:24 
GeneralRe: LVN_ITEMCHANGED not sent? Pin
peterchen2-Mar-03 7:51
peterchen2-Mar-03 7:51 
GeneralRe: LVN_ITEMCHANGED not sent? Pin
GWENJi3-Mar-03 2:43
GWENJi3-Mar-03 2:43 
Generala simple question Pin
fogmen1-Mar-03 16:20
fogmen1-Mar-03 16:20 
GeneralRe: a simple question Pin
PJ Arends1-Mar-03 17:19
professionalPJ Arends1-Mar-03 17:19 
Generalskinning Pin
georgiek501-Mar-03 14:37
georgiek501-Mar-03 14:37 

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.