Re: [racket-users] Trouble shooting net/http-client

2020-05-15 Thread Jon Zeppieri
I can't reproduce this with a simple example. ``` #lang racket/base (require net/http-client) (define data "hello world!") (http-sendrecv "postman-echo.com" "/post" #:ssl? #f #:method #"POST" #:data data) ``` Maybe you could post

Re: [racket-users] Trouble shooting net/http-client

2020-05-15 Thread Sam Tobin-Hochstadt
The source code is here: https://github.com/racket/racket/blob/master/racket/collects/net/http-client.rkt Sam On Fri, May 15, 2020 at 3:57 PM je back wrote: > > I'm having trouble with formatting the #:data parameter to a http-sendrecv > request. If I insert the string literal after #:data

[racket-users] Trouble shooting net/http-client

2020-05-15 Thread je back
I'm having trouble with formatting the #:data parameter to a http-sendrecv request. If I insert the string literal after #:data "my string" it works, if I bind the string to a symbol (define my-string "my string") and call with #:data my-string i get an error from the severs: HTTP/1.1 400 Bad