HTTP headers

Help
Jeff Davis
2000-03-10
2000-03-17
  • Jeff Davis

    Jeff Davis - 2000-03-10

    How can you 'POST' to a page with sockets?
    I tried:
    $sent_str = "POST /ec/sock.php HTTP/1.0\n\nvar=hi";
    fwrite($socket_connection,$sent_str,strlen($sent_str));

    but I couldn't get a response. I have been able to get responses just fine with the GET method. Basically I am asking what a POST header looks like.

    Thanks,
    Jeff Davis

     
    • Monte Ohrt

      Monte Ohrt - 2000-03-17

      Check the RFC's for HTTP.
      The content of the post is in the body of the message.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks