Forum

modify HTTP header

Charles Li
21 April 2017, 12:47
How can I modify response HTTP header?

I want modify Connection 'keep-Alive' to 'close', When I Add it in cgi
"Content-Type: text/html\r\n"
"Connection: close\r\n"
"\r\n"

I Capturing packets and found that both of them were present in http header, How can I repleace it?
Hugo Leisink
21 April 2017, 13:45
The connection type (close or keep-alive) is something the webserver handles and cannot be changed by a CGI application. So, don't send the Connection header.
This topic has been closed.