From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.user Subject: Re: read-response-body of (web response) depends on Content-Length but ... Date: Fri, 27 Apr 2012 19:32:15 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1335526352 18311 80.91.229.3 (27 Apr 2012 11:32:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 Apr 2012 11:32:32 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Apr 27 13:32:31 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SNjPa-0004BT-J1 for guile-user@m.gmane.org; Fri, 27 Apr 2012 13:32:30 +0200 Original-Received: from localhost ([::1]:37808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNjPZ-0002No-Ot for guile-user@m.gmane.org; Fri, 27 Apr 2012 07:32:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNjPU-0002NX-Ce for guile-user@gnu.org; Fri, 27 Apr 2012 07:32:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNjPP-0003xU-6r for guile-user@gnu.org; Fri, 27 Apr 2012 07:32:23 -0400 Original-Received: from mail-pz0-f51.google.com ([209.85.210.51]:48057) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNjPO-0003xG-U8 for guile-user@gnu.org; Fri, 27 Apr 2012 07:32:19 -0400 Original-Received: by dadz8 with SMTP id z8so764306dad.38 for ; Fri, 27 Apr 2012 04:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=NwDsc9WADNy05uvaXg7ZDKP5+HKqCVf+1zv68E0pyPw=; b=bAdkRB/yFFOVin79fGuu56UBJqQCor0l/X42iOHYunMwO4WKFzsWstT8gKqmkqr4Hx cHGJv6Iyrw4OtxpBDuzKHfaNU+jPZSFot9fWwuWpUUwbEd7PpPDVfhKPVATVSiYHavE2 7z0veklpYKYZCmY0s0+W94+bO1iWdWQaV+tPysIZ3caGFH9oos4byz5jRD2StwWx1Sgz 7MEuMa9H6R/a8fHN4ToTKgqJZdKasJfUr2uk+9TlHJDZaQewfnATv0E+sZz/zcG73m/7 fQEMIrRYnVh50HrC1GWomoBK7EiNryvta2JPLsSHt953+kG3yDRMwWUBptsNtn815+0O fe7A== Original-Received: by 10.68.212.69 with SMTP id ni5mr23060595pbc.39.1335526335727; Fri, 27 Apr 2012 04:32:15 -0700 (PDT) Original-Received: by 10.142.102.5 with HTTP; Fri, 27 Apr 2012 04:32:15 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.51 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9406 Archived-At: On 27 April 2012 16:28, Sunjoong Lee wrote: > I googled and found=C2=A0http://tools.ietf.org/html/rfc2616 . > > In a section of "4.4 Message Length": > =C2=A0 2.If a Transfer-Encoding header field (section 14.41) is present a= nd > =C2=A0 =C2=A0 =C2=A0has any value other than "identity", then the transfe= r-length is > =C2=A0 =C2=A0 =C2=A0defined by use of the "chunked" transfer-coding (sect= ion 3.6), > =C2=A0 =C2=A0 =C2=A0unless the message is terminated by closing the conne= ction. > =C2=A0 3.If a Content-Length header field (section 14.13) is present, its > =C2=A0 =C2=A0 =C2=A0decimal value in OCTETs represents both the entity-le= ngth and the > =C2=A0 =C2=A0 =C2=A0transfer-length. The Content-Length header field MUST= NOT be sent > =C2=A0 =C2=A0 =C2=A0if these two lengths are different (i.e., if a Transf= er-Encoding > =C2=A0 =C2=A0 =C2=A0header field is present). If a message is received wi= th both a > =C2=A0 =C2=A0 =C2=A0Transfer-Encoding header field and a Content-Length h= eader field, > =C2=A0 =C2=A0 =C2=A0the 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