Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.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中的HTTP头411错误_Asp.net_Http - Fatal编程技术网

asp.net中的HTTP头411错误

asp.net中的HTTP头411错误,asp.net,http,Asp.net,Http,我有一些简单逻辑的.aspx文件。只能使用HTTP Post方法访问此文件。我的问题是,在某些注册表(regnow)中,他们要求我提供url(My.aspx url)和访问方法(Post或Get)。我选择了帖子,然后他们尝试访问url并得到HTTP411错误(标题缺少内容长度) 有没有办法防止web应用程序发回此错误?可能是web.config文件中的某种配置 非常感谢, 阿迪巴尔达

我有一些简单逻辑的.aspx文件。只能使用HTTP Post方法访问此文件。我的问题是,在某些注册表(regnow)中,他们要求我提供url(My.aspx url)和访问方法(Post或Get)。我选择了帖子,然后他们尝试访问url并得到HTTP411错误(标题缺少内容长度)

有没有办法防止web应用程序发回此错误?可能是web.config文件中的某种配置

非常感谢,
阿迪巴尔达