When sending an HTTP POST request with data, you must insert two newlines between the Content-Length header and the actual data. Otherwise you end up with a vague error about a missing colon in the header field. Took me forever to figure this out…
When sending an HTTP POST request with data, you must insert two newlines between the Content-Length header and the actual data. Otherwise you end up with a vague error about a missing colon in the header field. Took me forever to figure this out…