`
hilary3113
  • 浏览: 262621 次
  • 性别: 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
分享到:
评论

相关推荐

    Adobe After Effects CC Classroom in a Book (2019 Release)

    Creative professionals seeking the fastest, easiest, most comprehensive way to learn Adobe After Effects CC (2019 release) choose Adobe After Effects CC Classroom in a Book (2019 release) from Adobe ...

    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...

    Joomla! 1.5 Development Cookbook.pdf

    Getting a column from a multidimensional array 272 Getting a value from an array 273 Casting all elements of an array to integers 274 Sorting an array of objects 275 Imploding an array 277 ...

    Backbase - Client Edition 3.2 Getting Started.pdf

    The Backbase - Client Edition is the commercial ... When a client makes the initial request, the core JavaScript files of the Backbase Presentation Client (BPC) are compressed and sent to the browser.

    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 ...

    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 Flex 3

    After finishing this guide, you'll be able to build Flash applications ranging from widgets to full-featured RIAs using the Flex SDK and Flex Builder 3.0. With Getting Started with Flex 3, you will: ...

    Python Cookbook英文版

    1.3 Getting a Value from a Dictionary 1.4 Adding an Entry to a Dictionary 1.5 Associating Multiple Values with Each Key in a Dictionary 1.6 Dispatching Using a Dictionary 1.7 Collecting a ...

    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 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, ...

    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 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,...

    Getting Started with Arduino, 2nd Edition

    From getting organized to putting the final touches on your prototype, all the information you need is here! Getting started with Arduino is a snap. To use the introductory examples in this guide, ...

    Getting.a.Big.Data.Job.For.Dummies

    Getting a Big Data Job For Dummies is the ultimate guideto landing a position in one of the fastest-growing fields in themodern economy. Learn exactly what "big data" means, why it's soimportant ...

    Getting Real中文版

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

    Getting The Best From The Cost Based Optimizer

    如何使用好oracle的CBO特性,如何收集正确的统计信息

Global site tag (gtag.js) - Google Analytics