I’m making a simple get request to an HTTP server which works fine in CURL but fails in Spark. I have a feeling it may be the buffer size in TcpClient but not sure how to build my own. The request looks like this (sensitive data changed):
GET /data.json?req=login&Token=&username=status&password=something HTTP/1.1
And the server usually says
HTTP/1.0 500 Array index is out of range.
What’s also strange is that it hangs a long time between User-Agent line and the rest (like the buffer is full and not moving)