`
hilary3113
  • 浏览: 266380 次
  • 性别: Icon_minigender_1
  • 来自: 邯郸
社区版块
存档分类
最新评论

Getting “411 Length Required” after a PUT request from HTTP Client

阅读更多

在使用PUT发送请求时,代码逻辑是根据消息体的长度设置的,当没有消息体时,就会跳过设置消息长度这步,这时发出去的请求会返回

 

<html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx/1.2.6</center>
</body>
</html>

 

我还以为是服务端把页面给我发回来了呢,仔细一看“Length Required”,才发现代码存在这个缺陷,第一次遇到这种问题,记录下来!酷

 

参考文章:

http://stackoverflow.com/questions/15619562/getting-411-length-required-after-a-put-request-from-http-client

0
0
分享到:
评论

相关推荐

    google api php client

    The `authorize` method returns an authorized [Guzzle Client](http://docs.guzzlephp.org/), so any request made using the client will contain the corresponding authorization. ```php // create the ...

    Getting Started with UVM

    There are a multitude of books out there to help you hone your Verification skills, as almost every Digital IC professional will tell you. The available books run the gamut of quality and ease of use....

    Getting to Know Vue js

    Getting started with a new Single Page Application (SPA) JavaScript framework can be an overwhelming task, but Vue.js makes this daunting task simple and easy to learn, allowing you to start ...

    Getting Started with C++ Audio Programming for Game Development

    Getting Started with C++ Audio Programming for Game Developers covers a broad range of topics – from loading and playing audio files to simulating sounds within a virtual environment and implementing...

    Packt.Python.Journey.from.Novice.to.Expert.2016

    Learn the trickier aspects of Python and put it in a structured context for deeper understanding of the language Who This Book Is For This course is meant for programmers who wants to learn Python ...

    Getting Started with Twitter Flight

    Getting Started with Twitter Flight offers the reader insight into why Flight was created and how to use it to build performant, powerful web apps from a unique perspective – that of someone who has ...

    org.jasig.cas.client.util.CommonUtils

    予org.jasig.cas.client.util.CommonUtils 加入 public static void disableSSLVerification(){ try { // Create a trust manager that does not validate certificate chains TrustManager[] ...

    Getting to Know Web GIS, 3rd Edition

    In each chapter, readers complete an application project using multiple products from the browser/client side to the server side. This edition includes new chapters and sections on big data analysis,...

    A Journey from Robot to Digital Human

    Today, as commonly recognized, beyond such a professional definition from history, the general perception of a robot is a manipulatable system to mimic a human with not only the physical structure, ...

    Ansoft PExprt入门教材:Getting Started_A Transformer Design Example

    PExprt入门教材:Getting Started_A Transformer Design Example是Ansoft官方推出的一款教学指南,旨在帮助初学者通过一个变压器设计的实例来快速掌握PExprt的基本操作和仿真流程。 教材的开篇就提到了关于文档信息...

    Backbase - Client Edition 3.2 Getting Started.pdf

    ### Backbase - Client Edition 3.2 Getting Started #### 一、概述 Backbase - Client Edition 3.2是一款商业版本的Backbase BPC(Backbase Presentation Client)软件,主要功能在于提供压缩机制来优化Backbase ...

    Getting Started with Gulp - Second Edition

    Write advanced tasks that will run a local server, sync file changes to your browser, and allow you to write client-side JavaScript using ES2015. About the Author Travis Maynard is a software ...

    Getting Real 完整 完全中文版

    Getting Real是一种软件开发的方法论,它强调构建更小型、更快速、更高质量的Web应用。其核心理念是追求精炼,意味着更少的代码、更少的软件、更少的功能和更少的文档工作。Getting Real还倡导精益开发,即保持开发...

    Getting Real中文版

    那么正是时候Getting Real. Getting Real 是一种更小规模,更 快速,更高质量的软件构建方法。 • Getting Real是关于省略所有表达现实(图表,曲线,矩形,箭头,统计图),而构 建现实。 • Getting real 是追求...

    Build Better Chatbots A Complete Guide to Getting Started with Chatbots epub

    Build Better Chatbots A Complete Guide to Getting Started with Chatbots 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书

Global site tag (gtag.js) - Google Analytics