“Connection: Keep-Alive” in server response

后端 未结 2 1448
别跟我提以往
别跟我提以往 2021-02-02 00:25

I\'m trying to establish a HTTP persistent connection from a Silverlight application to a PHP page (ie without creating a new TCP connection for each HTTP request) hosted by an

2条回答
  •  遥遥无期
    2021-02-02 01:16

    Since PHP doesn't manage the HTTP connection, it has no way to change this setting. You need to set that in servers. For example, you can enable keep-alive like this in Apache if you are using mod_php,

    KeepAlive On
    

提交回复
热议问题