Thread: POST: cgi string

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    35

    POST: cgi string

    say i wanted to use POST to run a cgi script from a client i've written, what string would i send it?

    this is how you would request with a GET method
    "GET / HTTP/1.0\n\n";

    i can't seem to figure out the POST method..

    i keep getting 404's with
    "POST /cgi-bin/myscript.pl HTTP/1.0\n\n";
    or
    "POST /cgi-bin/myscript.pl?foo=bar HTTP/1.0\n\n";

  2. #2
    return 0;
    Join Date
    Jan 2005
    Location
    Netherlands
    Posts
    89
    Try this:

    POST http://www.server.com/cgi-bin/myscript.pl HTTP/1.0
    or

    POST /cgi-bin/myscript.pl HTTP/1.0
    Host: www.server.com
    Last edited by Snip; 05-29-2006 at 03:34 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  2. Linked List Help
    By CJ7Mudrover in forum C Programming
    Replies: 9
    Last Post: 03-10-2004, 10:33 PM
  3. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 03:23 PM
  4. creating class, and linking files
    By JCK in forum C++ Programming
    Replies: 12
    Last Post: 12-08-2002, 02:45 PM
  5. Again Character Count, Word Count and String Search
    By client in forum C Programming
    Replies: 2
    Last Post: 05-09-2002, 11:40 AM