Skrevet av Emne: How to make a HTTP 1.1 request manually  (Lest 4593 ganger)

ATC

  • Gjest
How to make a HTTP 1.1 request manually
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • For debugging CGI scripts etc. it is sometimes necessary to perform HTTP queries manually using telnet. However, the HTTP 1.1 protocol is very specific as to how these requests should be formatted and few servers have useful error messages.



    ATC

    • Gjest
    [Solved] How to make a HTTP 1.1 request manually
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • The correct format is:
    "GET /path/to/document.extension HTTP/1.1"
    "HOST: hostname.domain.tld"
    "(blank line)"

    More info can be found in RFC2068