Ano-Tech Computers
Enter keyword:

How to make a HTTP 1.1 request manually
Problem:
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.
 
Solution:
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
 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles