General discussion

  • Creator
    Topic
  • #2073626

    Telneting on port 80

    Locked

    by _void_ ·

    Having problems POSTing a sting to a CGI-script using telnet on port 80… anyone know the syntax for POST?

All Comments

  • Author
    Replies
    • #3894761

      Telneting on port 80

      by argv[0] ·

      In reply to Telneting on port 80

      Syntax:
      —————————
      POST HTTP/1.1


      —————————

      For example:
      —————————
      POST /nic/whois/whois.cgi HTTP/1.1
      Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, */*
      Referer: http://www.ripn.net:8080/nic/whois/index.html
      Accept-Language: ru,en-us;q=0.5
      Content-Type: application/x-www-form-urlencoded
      Accept-Encoding: gzip, deflate
      User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)
      Host: http://www.ripn.net:8080
      Content-Length: 53
      Connection: Keep-Alive

      Whois=COMTAT-MNT-RIPN&Host=whois.ripn.net&Type=mnt-by
      —————————

      Look at RFC2616 for more details.

Viewing 0 reply threads