0

Is there a way to set the value of keep-alive = false and close the connection using HTTPClient and is this a best practice.

by default in apache KeepAlive is on

Accept-Ranges: bytes Vary: Accept-Encoding Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: text/html

from the client I want to set Connection = close.

  • 2
    This looks like a question for Stack Overflow. Though you also will want to mention exactly what client you're using. There are multiple programs known as HTTPClient. – Michael Hampton Jan 4 '13 at 16:41
0

Yes.

In the Apache configs you can find this:

KeepAlive On

Just change it to

KeepAlive Off

and then the KeepAlive setting for your apache server will be off.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.