net覆盖连接保持活动标头

net覆盖连接保持活动标头

本文介绍了asp.net覆盖连接保持活动标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的服务器在响应处发送"Connection""keep-alive"标头.我必须在某些页面中更改它以响应连接"关闭",但它似乎不起作用.
Response.Headers.Add("Connection", "close");不会影响响应,Response.Headers("Connection") = "close"
行也不会
谢谢.

Hi,

my server is sending the "Connection" "keep-alive" header at the response. I must change it in some pages to response "connection" "close" but it does not seem to work.
Response.Headers.Add("Connection", "close"); does not affect the response nor does the line Response.Headers("Connection") = "close"

Thanks.

推荐答案

response.setHeader("Connection", "close");



万一它不起作用,请检查您的IIS设置.在服务器端发布您正在执行的响应代码/编辑.



In case, it does not work, check your IIS setting. Post the response code/edits that you are doing on server side.


这篇关于asp.net覆盖连接保持活动标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 01:16