在使用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
相关推荐
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 ...
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 ...
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 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 Developers covers a broad range of topics – from loading and playing audio files to simulating sounds within a virtual environment and implementing...
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 ...
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 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 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 ...
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: ...
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 ...
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 ...
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,...
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, ...
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 ...
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,...
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 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 是追求...
如何使用好oracle的CBO特性,如何收集正确的统计信息