Ugh! Just had the "duh!" moment. It was my CGI script's fault all along.
To get the POST/GET parameters, I was only parsing the QUERY_STRING
environment variable if CONTENT_LENGTH was non-null, whereas I should
have been parsing it if CONTENT_LENGTH was non-null *and* non-zero.
I didn't immed
So this works (try it with "telnet harvest.com 80"):
GET /he HTTP/1.0
but this doesn't (i.e., returns the site's main page instead of /he):
GET /he HTTP/1.0
Content-Length: 0
Oh, just a follow-up note. The "/he" page is actually a mod_rewrite
shortcut to a CGI script, but if I manually exp
Hi all,
I've got a problem with a "Content-Length: 0" header in GET requests. I
discovered it because some requests from newish mobile phone browsers
weren't working. Anyway, I captured the headers these phones were
sending in the GET request, and narrowed it down to them having a
"Content-Le