[Fiddler] Error:Content-Length mismatch: Request Header indicated 16 bytes, but client sent 0 bytes.
来源:互联网 发布:淘宝运营策划方案 编辑:程序博客网 时间:2024/06/04 18:08
[Fiddler] Error:Content-Length mismatch: Request Header indicated 16 bytes, but client sent 0 bytes.
The error is because of do "location.reload();" after "$.ajax()".
Remove "location.reload();" will fix the issue.
$.ajax({ type: 'POST', url: pageUrl, data: JSON.stringify(parameter), contentType: 'application/json; charset=utf-8', dataType: 'json', success: function (data) { onSuccess(data); }, error: function (data, success, error) { alert("Error : " + error); } });
Another same cause error:
2299 Failed to obtain request body. System.IO.InvalidDataException The request body did not contain the specified number of bytes. Got 0, expected 19
So how to do refresh page after ajax:
$.ajax({ type: 'POST', url: pageUrl, data: JSON.stringify(parameter), contentType: 'application/json; charset=utf-8', dataType: 'json', success: function (data) { onSuccess(data); }, error: function (data, success, error) { alert("Error : " + error); }, complete: function () { setTimeout(function () { window.location.reload(); }, 1000); } });
0 0
- [Fiddler] Error:Content-Length mismatch: Request Header indicated 16 bytes, but client sent 0 bytes.
- [uwsgi-body-read] Error reading 65536 bytes. Content-Length: 560903 consumed: 0 left: 560903 message
- Error: Read from storage 0 bytes, but requested 12 bytes 的解决方法
- Warning: Unknown: POST Content-Length of 53 bytes exceeds the limit of 0 bytes in Unknown on line 0
- nginx配置 error content length mismatch
- java.net.ProtocolException: Exceeded stated content-length of: '6144' bytes
- didn't meet stated Content-length,wrote:'133' bytes instead of stated '204' bytes
- bytes
- composer Content-Length mismatch
- ::net content-length mismatch
- request exceeds 8192 bytes
- Warning: POST Content-Length of 81360713 bytes exceeds the limit of 3145728 bytes in Unknown on line
- java.io.IOException: Unable to read entire header; 0 bytes read; expected 32 bytes
- java.net.ProtocolException: Exceeded stated content-length of: '13824' bytes 用jspSmartUpload.jar下载 出错
- weblogic 11g java.net.ProtocolException: Exceeded stated content-length of: '13824' bytes
- content-length bytes were read and there was no trailing null byte
- NSCFDictionary bytes]: unrecognized selector sent to instance
- Unable to read entire header; bytes read; expected bytes
- 修改浏览器默认网址
- 黑马程序员---Java基础---Map集合
- Android procrank查看内存使用情况
- POJ 题目1837 Balance(分组背包)
- L - Oil Deposits HDU 1241 基础BFS
- [Fiddler] Error:Content-Length mismatch: Request Header indicated 16 bytes, but client sent 0 bytes.
- 修改应用背景(适用于SDK2.3)
- iOS开发-ios7下拉刷新,上提加载快速集成
- [PAT]1001.A+B Format (20)
- 解释器模式
- 简繁体字对照字库
- 一个Java程序的执行过程
- 获得当前视图的控制器
- Amazon S3跨区域复制功能火热出炉