From: Daniel Hartwig <mandyke@gmail.com>
To: guile-user@gnu.org
Subject: Re: read-response-body of (web response) depends on Content-Length but ...
Date: Fri, 27 Apr 2012 19:32:15 +0800 [thread overview]
Message-ID: <CAN3veRdnA8A4eDSHc43D-Fgee_aHMD9w_C2Y=v0KNgPYROatsw@mail.gmail.com> (raw)
In-Reply-To: <CAK93xhrKE6KX3DTT4gtq+iWHQ94Q7JX-PGEroqVEhUkUhvASTg@mail.gmail.com>
On 27 April 2012 16:28, Sunjoong Lee <sunjoong@gmail.com> wrote:
> I googled and found http://tools.ietf.org/html/rfc2616 .
>
> In a section of "4.4 Message Length":
> 2.If a Transfer-Encoding header field (section 14.41) is present and
> has any value other than "identity", then the transfer-length is
> defined by use of the "chunked" transfer-coding (section 3.6),
> unless the message is terminated by closing the connection.
> 3.If a Content-Length header field (section 14.13) is present, its
> decimal value in OCTETs represents both the entity-length and the
> transfer-length. The Content-Length header field MUST NOT be sent
> if these two lengths are different (i.e., if a Transfer-Encoding
> header field is present). If a message is received with both a
> Transfer-Encoding header field and a Content-Length header field,
> the latter MUST be ignored.
>
Ian Price has done some work to support chunked encoding recently,
which seems to be the source of your problems. His solution was
already quite thorough but some comments were made. You may want to
help finishing that off.
Search the guile-devel and -user archives for "Chunked Encoding" to find it.
http://comments.gmane.org/gmane.lisp.guile.devel/12814
http://comments.gmane.org/gmane.lisp.guile.user/8935
prev parent reply other threads:[~2012-04-27 11:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-27 8:04 read-response-body of (web response) depends on Content-Length but Sunjoong Lee
2012-04-27 8:28 ` Sunjoong Lee
2012-04-27 10:00 ` Sunjoong Lee
2012-04-27 11:08 ` Sunjoong Lee
2012-04-27 12:35 ` Sunjoong Lee
2012-04-27 11:32 ` Daniel Hartwig [this message]
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/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN3veRdnA8A4eDSHc43D-Fgee_aHMD9w_C2Y=v0KNgPYROatsw@mail.gmail.com' \
--to=mandyke@gmail.com \
--cc=guile-user@gnu.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.
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).