[racket] HTTP-POST byte string gets truncated

From: Danny Yoo (dyoo at hashcollision.org)
Date: Sun Oct 7 19:49:29 EDT 2012

On Sat, Oct 6, 2012 at 4:50 AM, Mikko Tiihonen
<mikko.tiihonen at tmtiihonen.fi> wrote:
> Hi, again!
>
> I'm continuing to build a small HTTP-client. The problem is now that the POST parameter/value byte strings sent by put-pure-port and post-pure-port seem to get truncated somewhere. The request-post-data/raw shows that the byte string gets prepended with "\r\n\r\n" and truncated by four bytes. E.g.
>
> (post-pure-port uri #"param1=hello&param2=world" header)
>
> is received as
>
> #"\r\n\r\nparam1=hello&param2=w"


Odd.  What's the content of 'header' here?  It's the only free
variable I see whose value I don't quite understand yet.


Posted on the users mailing list.