unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: "Anders Thøgersen" <anders@bladre.dk>
To: 15908@debbugs.gnu.org
Subject: bug#15908: http-{put,post}
Date: Fri, 15 Nov 2013 22:38:58 +0100	[thread overview]
Message-ID: <20131115213858.GA2245@bladre.dk> (raw)

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	other threads:[~2013-11-15 21:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-15 21:38 Anders Thøgersen [this message]
2013-11-17  3:52 ` bug#15908: http-{put,post} Mark H Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131115213858.GA2245@bladre.dk \
    --to=anders@bladre.dk \
    --cc=15908@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).