GNU bug report logs - #15908
http-{put,post}

Previous Next

Package: guile;

Reported by: Anders Thøgersen <anders <at> bladre.dk>

Date: Fri, 15 Nov 2013 22:06:02 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Mark H Weaver <mhw <at> netris.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#15908: closed (http-{put,post})
Date: Sun, 17 Nov 2013 03:54:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 16 Nov 2013 22:52:48 -0500
with message-id <87k3g78z1r.fsf <at> netris.org>
and subject line Re: bug#15908: http-{put,post}
has caused the debbugs.gnu.org bug report #15908,
regarding http-{put,post}
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
15908: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15908
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Anders Thøgersen <anders <at> bladre.dk>
To: bug-guile <at> gnu.org
Subject: http-{put,post}
Date: Fri, 15 Nov 2013 22:38:58 +0100
Hi,

I noticed that there is a bug in the http-{put,post} methods of the
web client:

    (use-modules (web client))
    (http-put "http://localhost:2000")

results in

    $ nc -l -p 2000
    PUT / HTTP/1.1
    Host: localhost:2000
    Connection: close


But if I add a body:

    (http-put "http://localhost:2000" #:body "Hello!")

I get a GET request

    $ nc -l -p 2000
    GET / HTTP/1.1
    Content-Length: 6
    Content-Type: text/plain;charset=utf-8
    Host: localhost:2000
    Connection: close

    Hello!

Thanks!
Anders



[Message part 3 (message/rfc822, inline)]
From: Mark H Weaver <mhw <at> netris.org>
To: Anders Thøgersen <anders <at> bladre.dk>
Cc: 15908-done <at> debbugs.gnu.org
Subject: Re: bug#15908: http-{put,post}
Date: Sat, 16 Nov 2013 22:52:48 -0500
Hi,

Anders Thøgersen <anders <at> bladre.dk> writes:
> But if I add a body:
>
>     (http-put "http://localhost:2000" #:body "Hello!")
>
> I get a GET request
>
>     $ nc -l -p 2000
>     GET / HTTP/1.1
>     Content-Length: 6
>     Content-Type: text/plain;charset=utf-8
>     Host: localhost:2000
>     Connection: close

This was reported in September and fixed on the stable-2.0 branch, so it
will be fixed in Guile 2.0.10.

http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commit;h=9c85fd02218705033f18befafa04d9c8c6b76297

If you need a workaround for existing Guile releases, here's how:

http://lists.gnu.org/archive/html/guile-user/2013-09/msg00046.html

I'm closing this bug.  Please let us know if you have other problems.

    Thanks,
      Mark


This bug report was last modified 11 years and 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.