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