HTTP status code 411: Length Required. Emitted when a request needed to include a Content-Length header, but did not.
Questions tagged [http-status-code-411]
30 questions
1
vote
1 answer
firebase messaging api php subscribe to topic 411 error
I am trying to implement notifications into my web app. I have this php file in which I send notifications:

krummens
- 837
- 2
- 17
- 38
1
vote
1 answer
Getting 411 error bad request in Evernote
We have three environments, Dev, QA and Prod.
We have a stable PHP running that connects with evernote , get token and fetch content.
we updated our QA environment to PHP 7.0 and now when via evernote when we try to fetch Token it returns
Invalid…

PHP Tester
- 35
- 1
- 5
1
vote
1 answer
WebAPI and status code 411 "Length Required"
411 Length Required
The request did not specify the length of its content, which is required by the requested resource.
I have the following code:
[HttpPost]
[Route("UploadFileAsync/{RequestID}")]
public async…

Oleg Sh
- 8,496
- 17
- 89
- 159
1
vote
0 answers
REST Approach: If data is being modified, is a GET better than a PUT with a 1 character body
We have a pair of REST applications that are trying to achieve a light version of transactions by using an acknowledgment URL that indicates that it is time for both sides to "commit" the modification. Here are the steps - these are not done…

drchuck
- 4,415
- 3
- 27
- 30
1
vote
0 answers
Google cloud storage : length required 411
I use Google Cloud Storage and I want to know if my file upload is a success.
I use resumable uploads.
Google doc : google doc link
I can upload file with a session url :
byte[] byteArray = Files.readAllBytes(path);
long byteCount =…

damien marchand
- 864
- 1
- 13
- 30
1
vote
1 answer
CURL Post - Length required
I've made a simple code to login to my website.
private function request($url, $reset_cookies, $post_data)
{
$options = array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_HEADER =>…

Manitoba
- 8,522
- 11
- 60
- 122
1
vote
1 answer
CORS on DotCloud, 411 Length required
tl;dr: how do I work around "411 Length required" errors from nginx running on DotCloud?
I've got an API with CORS support deployed as Python service on DotCloud platform. When my javascript client tries to access it, browser starts with OPTIONS…

Pēteris Caune
- 43,578
- 6
- 59
- 81
0
votes
1 answer
completeMultipartUpload: s3 error 411 content-length
I'm getting a content-length 411 error. The variables in completeMultipartUpload are all valid, as well as their structure. The issue is the content-length header: Here's the error:
S3 Error: Error executing "CompleteMultipartUpload" on…

Mike
- 155
- 1
- 11
0
votes
0 answers
411 content length required on IIS server but not on linux based server
I have a RESTApi application which I have recently moved over to Microsoft Azure App-services. Earlier it was hosted on a Linux server. The issue that I am seeing is weird:
When a client using ASP.net call a POST request with no body and no…

nkt217
- 21
- 5
0
votes
0 answers
Getting HTTP 411 when specifying Content-Length
I am getting an HTTP 411 error when testing a POST request. I am not an expert with APIs but I feel like I'm not a complete newbie, either. I am using Advanced Rest Client to test the request because I don't have code generating it. I am trying…
0
votes
1 answer
AWS s3 upload api call returning 411 status
I have been trying to perform AWS s3 rest api call to upload document to s3 bucket. The document is in the form of a byte array.
PUT /Test.pdf HTTP/1.1
Host: mybucket.s3.amazonaws.com
Authorization: **********
Content-Type:…

am007
- 35
- 1
- 7
0
votes
1 answer
Unable to call Closure Compiler web service from Angularjs
Trying to use google closure-compiler with Angular js this is my code/function:
$scope.processForm = function(js_code) {
var js_code_lenght = js_code.length;
alert(js_code_lenght);
console.log($scope.formData);
$http({
method: 'POST',
…

Dimitri
- 57
- 8
0
votes
1 answer
POST request with chunked body - response HTTP/1.0 411
I have an Apache2 server with a .php file that echo the request body to the screen.
I'm trying to send a POST request to the file with chunked body and the response is HTTP/1.0 411.
How can I configure the Apache to response with HTTP/1.1 and…

Raz Omessi
- 1,812
- 1
- 14
- 13
0
votes
1 answer
r-project {httr} POST authentication gets HTTP ERROR 411 from IIS7.5
yI'm using the {httr} package to log into an internal web application (Theradoc on IIS7.5) in order to scrape some html (infection) data.
library(httr)
POST("http://ahdc372n2", authenticate("foo", "bar"), encode="multipart"), verbose())
The verbose…

Colin
- 930
- 3
- 19
- 42
0
votes
1 answer
Camel http4 component 411 Bad Content-Length
The route :
from("direct:start")
.setProperty(Exchange.CHARSET_NAME, constant("iso-8859-1"))
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
Message m =…

redben
- 5,578
- 5
- 47
- 63