HTTP headers

Jeff Davis
  • 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";

    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.

    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.


Log in to post a comment.

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

Sign up for the SourceForge newsletter:

No, thanks