[racket] Http post using post-impure-port

From: Eli Barzilay (eli at barzilay.org)
Date: Fri Jun 11 15:42:22 EDT 2010

On Jun 11, Noel Welsh wrote:
> I did a quick check of the source code and post-impure-port definitely
> does send the post data -- at least functions to do so appear in the
> code. Have you tried a packet sniffer like Wireshark? That will tell
> exactly was is being sent over the wire.

Netcat is very simple -- I ran

  nc -l -p 49986

and the script sent exactly this:

  POST /foo/bar/ HTTP/1.0
  Host: localhost:49986
  Content-Length: 15

  foo=bar&fiz=fuz

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.