unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#15908: http-{put,post}
@ 2013-11-15 21:38 Anders Thøgersen
  2013-11-17  3:52 ` Mark H Weaver
  0 siblings, 1 reply; 2+ messages in thread
From: Anders Thøgersen @ 2013-11-15 21:38 UTC (permalink / raw)
  To: 15908

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






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#15908: http-{put,post}
  2013-11-15 21:38 bug#15908: http-{put,post} Anders Thøgersen
@ 2013-11-17  3:52 ` Mark H Weaver
  0 siblings, 0 replies; 2+ messages in thread
From: Mark H Weaver @ 2013-11-17  3:52 UTC (permalink / raw)
  To: Anders Thøgersen; +Cc: 15908-done

Hi,

Anders Thøgersen <anders@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-17  3:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-15 21:38 bug#15908: http-{put,post} Anders Thøgersen
2013-11-17  3:52 ` Mark H Weaver

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).