   online hiscores --mysql database
  im trying to add online hiscores to tetris clone ive made .. where can i find articles on how to directly connect to an mysql database or indirectly send data to a perl or php script (i can handle it once i have the data sent to the script) from a program written in c.google has proved unhelpful so far  .. perhaps i dont know what im searching for .. any help? 
  Say you wanted to post something to www.somewhere.com/asdf.plOpen a TCP/IP stream to the server, probably on port 80, and send:POST /somescript.pl HTTP/1.1Host: www.somewhere.comUser-Agent: <probably the name of your program here>Content-length: <how many bytes of data we''re sending><-- blank line.<-- blank line.<the data you wanted to send>The server should return:HTTP/1.1 <number> <some text><stuff you can ignore>If that number is in the range of 200-299, then all is well. 400-499 would indicate and error. ;  Oh, you should also probably tell the server what you''re sending.Content-type: application/x-www-form-urlencodedis a likely choice. ;  thanks  ... *goes to research tcp/ip streams ;  though the above sounds much more interesting, maybe take a look at mysql++ ? ;quote:Original post by smart_idiot  Say you wanted to post something to www.somewhere.com/asdf.plOpen a TCP/IP stream to the server, probably on port 80, and send:POST /somescript.pl HTTP/1.1Host: www.somewhere.comUser-Agent: <probably the name of your program here>Content-length: <how many bytes of data we''re sending><-- blank line.<-- blank line.<the data you wanted to send>  The server should return:HTTP/1.1 <number> <some text><stuff you can ignore>  If that number is in the range of 200-299, then all is well. 400-499 would indicate and error.   99% correct, you just had one too many new lines (Not that it probably matters, but still..). HTTP Spec specifies TWO \n as the header-section terminator, but each header is terminated by a \n, so you only need one additional new line after the one that terminates the last header.Content-type: text/html\n\n;quote:Original post by Ruudje  though the above sounds much more interesting, maybe take a look at mysql++ ?   that looks good .. although id rather send the scores to a script and use mysql++ for reading the scores. thanx for the replies  ;  im slightly confused, what do you mean when you say open a tcp/ip stream  , open a socket on port 80? ;Beej''s Guide to Network ProgrammingSimple Stream ClientNote for Windows Programmers;  <>  strangely i was just reading that, in combination with game tutorials networking examples. thanks 