For completeness the nochunk test: #!/usr/bin/perl print "Status: 200 OK\r\n"; print "Content-Length: 3\r\n"; print "\r\n"; print "---"; Error: < HTTP/1.1 200 OK < Date: Thu, 13 Jun 2024 09:06:58 GMT < Server: Apache < Transfer-Encoding: chunked < Content-Type: application/x-cgi Ok: < HTTP/1.1 200 OK < Date: Thu, 13 Jun 2024 09:07:48 GMT < Server: Apache < Content-Length: 3 < Content-Type: application/x-cgi