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

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