Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net htaccess和POST请求_Asp.net_.htaccess_Isapi Rewrite - Fatal编程技术网

Asp.net htaccess和POST请求

Asp.net htaccess和POST请求,asp.net,.htaccess,isapi-rewrite,Asp.net,.htaccess,Isapi Rewrite,我正在我的网站上使用ISAPI htaccess规则 我打开fiddler,看到一个ajax post请求,其正文中包含内容 然后客户端得到302重定向(htaccess规则) 但第二个请求没有正文内容 这怎么可能呢?你说得对,除非是头部请求,否则应该有一个身体 临时URI应该由响应中的Location字段提供。除非请求方法是HEAD,否则响应的实体应该包含一个简短的超文本注释,并带有指向新URI的超链接 但是,有些Web服务器没有正确实现规范,例如 ,因此它很可能是此@EladBenda的一个

我正在我的网站上使用ISAPI htaccess规则

我打开fiddler,看到一个ajax post请求,其正文中包含内容

然后客户端得到302重定向(htaccess规则)

但第二个请求没有正文内容

这怎么可能呢?

你说得对,除非是头部请求,否则应该有一个身体

临时URI应该由响应中的Location字段提供。除非请求方法是HEAD,否则响应的实体应该包含一个简短的超文本注释,并带有指向新URI的超链接

但是,有些Web服务器没有正确实现规范,例如
,因此它很可能是此

@EladBenda的一个实例。如果您拥有客户机代码,那么只要发送位置标头,您就可以处理302,即如果您拥有客户机,则主体不必完全理解您。很抱歉如果我移除[R=302],它会工作吗?