如何解决"分块体不与0大小的块正确地终止与QUOT ;?。 [英] How to solve "Chunked body did not terminate properly with 0-sized chunk."?

查看:1203
本文介绍了如何解决"分块体不与0大小的块正确地终止与QUOT ;?。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个RSS feed。当我浏览到使用Fiddler Web调试开放的饲料,提琴手在我抛出这个错误:

 分块体没有正确地与0大小的块终止。

从触发错误的服务器的响应看起来是这样的:

  HTTP / 1.1 200 OK
日期:星期二,2013年1月22日21点00分49秒GMT
服务器:Microsoft-IIS / 6.0
的X已启动方式:ASP.NET
的X ASPNET-版本:2.0.50727
缓存控制:私人
内容类型:文本/ xml的;字符集= UTF-8
内容长度:30985< RSS版本=2.0>
  <渠道>
  ...等

在RSS的所有者试图提交网站RSS聚合时,报告问题。

我想在这里验证RSS: http://validator.w3.org/appc/。的反应是这样的:

  IncompleteRead(30985字节读)(IncompleteRead;错误配置的服务器)

不过,如果我浏览到RSS和复制过去code到这个验证: HTTP ://validator.w3.org/appc/#validate_by_input ,那么一切正确验证

我如何纠正呢?这是一个C#ASP.NET Web表单项目IIS6上.NET 3.5上运行。

更新

看来,我是使用招不正确。 unchcking德code选项后,这里是服务器响应:

  HTTP / 1.1 200 OK
日期:星期二,2013年1月22日21时22分03秒GMT
服务器:Microsoft-IIS / 6.0
的X已启动方式:ASP.NET
的X ASPNET-版本:2.0.50727
传输编码:分块
缓存控制:私人
内容类型:文本/ xml的;字符集= UTF-87909
< RSS版本=2.0>
  <渠道>
   ...等


解决方案

在上面发布的数据不是服务器发送的内容。来自服务器的响应包含一个HTTP标头的传输编码:分块但您的数据是不正常的HTTP-块编码格式

请用实际数据来更新你的问题,由小提琴手所捕获,确保在德code 在提琴手的工具栏选项不会检查。

(至于这个问题的根本原因,你误叫Response.Close()?请参阅此文章为什么这是完成HTTP响应不正确的方法的解释。)

I have an RSS feed. When I browse to the feed with Fiddler Web Debugger open, Fiddler throws this error at me:

Chunked body did not terminate properly with 0-sized chunk.

The response from the server that triggered the error looks like this:

HTTP/1.1 200 OK
Date: Tue, 22 Jan 2013 21:00:49 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 30985

<rss version="2.0">
  <channel>
  ... etc

The owner of the RSS is reporting problems when trying to submit the site to RSS aggregators.

I tried to validate the rss here: http://validator.w3.org/appc/. The response was this:

IncompleteRead(30985 bytes read) (IncompleteRead; misconfigured server?)

However, if I browse to the rss and copy past the code into this validator: http://validator.w3.org/appc/#validate_by_input, then everything validates correctly.

How do I correct this? This is a C# ASP.NET webforms project running on .NET 3.5 in IIS6.

Update

It appears that I was using Fiddler incorrectly. After unchcking the Decode option, here is the server response:

HTTP/1.1 200 OK
Date: Tue, 22 Jan 2013 21:22:03 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Transfer-Encoding: chunked
Cache-Control: private
Content-Type: text/xml; charset=utf-8

7909
<rss version="2.0">
  <channel>
   ... etc

解决方案

The data you posted above is not what the server sent. The response from the server contained a HTTP Header Transfer-Encoding: chunked but your data was not properly in the HTTP-chunked encoding format.

Please update your question with the actual data, as captured by Fiddler, making sure the Decode option in Fiddler's toolbar is NOT checked.

(As to the root cause of the problem, did you mistakenly call Response.Close()? See this article for an explanation of why that's the incorrect way to complete a HTTP response.)

这篇关于如何解决&QUOT;分块体不与0大小的块正确地终止与QUOT ;?。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆