From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: help with URL module needed Date: Tue, 30 Nov 2004 04:22:40 -0500 Message-ID: References: <200411261732.12616.pogonyshev@gmx.net> <200411281638.02083.pogonyshev@gmx.net> <200411290037.39196.pogonyshev@gmx.net> Reply-To: ttn@glug.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1101813574 17680 80.91.229.6 (30 Nov 2004 11:19:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Nov 2004 11:19:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 30 12:19:20 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CZ4En-0002SS-00 for ; Tue, 30 Nov 2004 10:23:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CZ4OE-0005c1-7u for ged-emacs-devel@m.gmane.org; Tue, 30 Nov 2004 04:33:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CZ4NB-0005bM-V1 for emacs-devel@gnu.org; Tue, 30 Nov 2004 04:32:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CZ4N9-0005aO-Se for emacs-devel@gnu.org; Tue, 30 Nov 2004 04:32:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CZ4N9-0005a6-Hq for emacs-devel@gnu.org; Tue, 30 Nov 2004 04:32:35 -0500 Original-Received: from [207.245.121.136] (helo=mail.agora-net.com) by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.34) id 1CZ4Da-0003t6-05 for emacs-devel@gnu.org; Tue, 30 Nov 2004 04:22:42 -0500 Original-Received: from ttn by mail.agora-net.com with local (Exim 4.30) id 1CZ4DY-0000uC-Mv; Tue, 30 Nov 2004 04:22:40 -0500 Original-To: schwab@suse.de In-reply-to: (message from Andreas Schwab on Tue, 30 Nov 2004 01:35:52 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30526 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30526 From: Andreas Schwab 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