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

2020-05-15 Thread je back
yln headers) (displayln (port->string in)) (close-input-port in)) On Friday, May 15, 2020 at 3:57:52 PM UTC-4, 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 "my s

[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