From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.user Subject: Re: is (web client) ready for use even for the simplest task? Date: Tue, 10 Sep 2013 06:33:15 -0400 Message-ID: <87li35m0es.fsf@tines.lan> References: <87y575m3uj.fsf@tines.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1378809230 19158 80.91.229.3 (10 Sep 2013 10:33:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2013 10:33:50 +0000 (UTC) Cc: guile-user@gnu.org To: Darren Hoo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 10 12:33:53 2013 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 1VJLGa-0003sb-GZ for guile-user@m.gmane.org; Tue, 10 Sep 2013 12:33:52 +0200 Original-Received: from localhost ([::1]:56898 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJLGZ-0003MF-LN for guile-user@m.gmane.org; Tue, 10 Sep 2013 06:33:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJLGM-0003Lp-QC for guile-user@gnu.org; Tue, 10 Sep 2013 06:33:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJLGG-0004F2-Lj for guile-user@gnu.org; Tue, 10 Sep 2013 06:33:38 -0400 Original-Received: from world.peace.net ([96.39.62.75]:57021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJLGG-0004Et-ES for guile-user@gnu.org; Tue, 10 Sep 2013 06:33:32 -0400 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VJLG9-0006Vl-3G; Tue, 10 Sep 2013 06:33:25 -0400 In-Reply-To: <87y575m3uj.fsf@tines.lan> (Mark H. Weaver's message of "Tue, 10 Sep 2013 05:19:00 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 96.39.62.75 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:10787 Archived-At: Mark H Weaver writes: >> (http-post "http://www.google.com/") >> >> the POST request is sent without the Content-Length header > > RFC 2616 makes it clear that the Content-Length header is optional. Sorry, I should have qualified this statement with "in this case", i.e. when there's no body. (web client) does add a Content-Length header when there's a non-empty body. It should also add a Content-Length header when an empty body is provided, but it doesn't. I'll fix this soon. Anyway, the work-around I provided adds a Content-Length header explicitly, so it works around this problem too. For the record, I didn't write this code; I'm just fixing it. Mark