unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thien-Thi Nguyen <ttn@agora-net.com>
Cc: emacs-devel@gnu.org
Subject: Re: help with URL module needed
Date: Tue, 30 Nov 2004 04:22:40 -0500	[thread overview]
Message-ID: <E1CZ4DY-0000uC-Mv@mail.agora-net.com> (raw)
In-Reply-To: <jek6s441hz.fsf@sykes.suse.de> (message from Andreas Schwab on Tue, 30 Nov 2004 01:35:52 +0100)

   From: Andreas Schwab <schwab@suse.de>
   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	other threads:[~2004-11-30  9:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-26 15:32 help with URL module needed Paul Pogonyshev
2004-11-26 16:04 ` Masatake YAMATO
2004-11-26 16:58   ` Paul Pogonyshev
2004-11-28 14:38     ` Paul Pogonyshev
2004-11-28 19:12       ` Andreas Schwab
2004-11-28 22:37         ` Paul Pogonyshev
2004-11-28 22:59           ` Andreas Schwab
2004-11-28 23:12             ` Paul Pogonyshev
2004-11-28 23:43               ` Alex Schroeder
2004-11-29  0:10               ` Andreas Schwab
2004-11-29 14:01                 ` Paul Pogonyshev
2004-11-30 19:49                   ` Paul Pogonyshev
2004-11-30 21:29                     ` Andreas Schwab
2004-11-29 21:42             ` Thien-Thi Nguyen
2004-11-30  0:35               ` Andreas Schwab
2004-11-30  9:22                 ` Thien-Thi Nguyen [this message]
2004-11-30 17:18         ` Mark A. Hershberger
2004-11-26 16:27 ` Thien-Thi Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1CZ4DY-0000uC-Mv@mail.agora-net.com \
    --to=ttn@agora-net.com \
    --cc=emacs-devel@gnu.org \
    --cc=ttn@glug.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).