I'm implementing a simple HTTP client.
Which header should I add to a HTTP 1.1 request so it won't keep alive?
You need to add header: Connection: close. Currently all connections are permanent and client must explicitly claim that it wants to close the connection.
Connection: close
You need to add header:
Connection: close
. Currently all connections are permanent and client must explicitly claim that it wants to close the connection.