CGI header too large when downlaoding a file
V.Lapic
6 March 2017, 11:50
Hello Hugo,
I try to transfer c cgi application on hiawatha and I have some issue with it (to say that my cgi program was working previously).
I have an issue with a cgi page that should make the user download a file.
Hiawatha doesn't seems to like it as I got an 500 error, and the error CGI header too large.
The first two line that outputs my cgi is :
Content-Type: application/x-tar
Content-Length: 23040
I guess I dindn't close well the http header, how do I do that?
Is there an other way to downlaod a file?
V.Lapic
6 March 2017, 11:54
Ok sorry created a topic for nothing, found it had to output "\r\n\r\n" after the parameter of my header
Hugo Leisink
7 March 2017, 10:00
Yes, every HTTP header must end with a '\r\n' and the header itself must with an empty line which also ends with '\r\n'. So, you indeed get a '\r\n\r\n' at the end.
This topic has been closed.