https://bugs.winehq.org/show_bug.cgi?id=50244
--- Comment #4 from parhom andriy.parhomenko@gmail.com --- (In reply to Hans Leidekker from comment #3)
With the Content-Length header fixed I still get an empty response.
Could it be possible, that after you fixed the header, the actual request data was not sent anyway?
I'm not very experienced in C, but it seems that in receive_response function the send_request is called with total_len parameter hardcoded to 0.