bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15908: http-{put,post}


From: Anders Thøgersen
Subject: bug#15908: http-{put,post}
Date: Fri, 15 Nov 2013 22:38:58 +0100
User-agent: Mutt/1.5.22 (2013-10-16)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]