emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with URL module needed


From: Thien-Thi Nguyen
Subject: Re: help with URL module needed
Date: Tue, 30 Nov 2004 04:22:40 -0500

   From: Andreas Schwab <address@hidden>
   Date: Tue, 30 Nov 2004 01:35:52 +0100

   Should Content-Length include the trainling CRLF in the other cases?

yes, i believe so (from trial and error in the wild, away from the http
specs).  to sum up, if these conditions are met:

 - content-type is application/x-www-form-urlencoded
 - POST data is exactly one line (this is usually the case for this
   content-type since urlencoding "flattens" embedded newlines)

then the final CRLF should be omitted, and the content-length set to
the length of the line in bytes after urlencoding.  i've found this to
work w/ both HTTP 1.0 and 1.1 servers, and have since become uncurious
about the rationale.  now i'm curious again, but still not enough to dig
into the specs.

thi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]