Questions tagged [content-length]

Entity-header field indicates the size of the entity-body.

The Content-Length entity-header field indicates the size of the entity-body, in decimal number of OCTETs, sent to the recipient or, in the case of the HEAD method, the size of the entity-body that would have been sent had the request been a GET.

374 questions
0
votes
2 answers

How to change vertical content's length depending on article's length?

If there's a vertical content slider which is 500px long, is there any way to modify this number with jquery, depending on how long is the (for example) "article" next to it? Additional info: The content slider have numerous box in it, I used a…
Nimue
  • 29
  • 2
  • 8
0
votes
1 answer

Linked Lists in C. error: conflicting types. Solution?

i have the following struct defined: typedef struct PList{ Person person; struct PList *nextPerson; // set to NULL by default <<<<< }PList; and this method: int length(struct PList* db){ PList* cur = db; int size = 0; while…
mangusbrother
  • 3,988
  • 11
  • 51
  • 103
0
votes
1 answer

ASIHTTPREQUEST No content-length response (large PDF file)

My iOS app is using ASIHTTPREQUEST to download files from a server. It works well, but uiprogressview doesn't. So I use code to check the header information: ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL…
Webworth
  • 68
  • 1
  • 1
  • 7
0
votes
2 answers

C# - HttpWebResponse Header Not Being Set

I'm attempting to set the content-length of my outgoing response headers but my code seems to have no effect on the headers. web_op_context.OutgoingResponse.Headers.Set("Content-Type", http_req.content_type); …
0
votes
1 answer

Android - Header content-length equal -1

I'm downloading a file in my android app and I want to display a progressbar. I need to know the total file size by using this method : here. The problem is that I always get -1 despite the fact that it's set on the server and I can see it from my…
Stephane Mathis
  • 6,542
  • 6
  • 43
  • 69
-1
votes
1 answer

Firebase FCM - 411 Error. POST requests require a Content-length header. That’s all we know

I am trying to send notifications to devices using FCM. On the server-side, i have got the authorisation token through the FCM Admin SDK in python ($auth_token), and the device $token. On running the code, I get the following function: function…
-1
votes
1 answer

Photo Upload - Jmeter - {"reason":"Chunk-Length mismatch (found: 73800, required:73581)"}

I am trying to upload photo via Jmeter, below is the sample request: URL: https://domain/.../signedresources/604a9230-..../resumable?region=US Method: PUT Headers: Content-Type - image/jpeg, image/jpeg Session-Id - 884b03... Content-Range -…
Sujata
  • 1
  • 1
-1
votes
1 answer

How to get the length of the column #3? Python

I'm super new to this, I honestly don't understand that much. Can someone help me to create a code to get the sum of column # 3, sorry if this is too silly, hope you can help me. Thanks It's a tab file. #Open file (must be a .tab file) file =…
Valy1004
  • 43
  • 5
-1
votes
1 answer

Issue with Content-Length header in NGINX server and PHP

I'm dynamically generating a zip file using my PHP application and printing it with all the necessary headers including "Content-Length". It is working fine when I download the file using wget but not getting downloaded in browser. What could be the…
Unnikrishnan
  • 2,683
  • 5
  • 22
  • 39
-1
votes
2 answers

Python - manipulate list only if its length is greater than X

For a small test I am doing, I need to print the 5th element of a list, if there is one. with open (my_file, 'r') as my_probe: for fileLine in my_probe: src_string = fileLine.split() my_list = list(src_string) # The list may…
Asenski
  • 49
  • 1
  • 1
  • 8
-1
votes
2 answers

Count lines in multiple csv files, skip blank lines

I need to get the length of csv files in ('/dir'/) excluding empty rows. I tried this: import os, csv, itertools, glob #To filer the empty lines def filterfalse(predicate, iterable): # filterfalse(lambda x: x%2, range(10)) --> 0 2 4 6 8 if…
-2
votes
2 answers

While and array - Using a loop with array

Can someome explain to me how New Array, and Array works with this loop? Also, anyone knows if is possible of doing a array and inside this array a function? Because this way of doing seem kinda wrong considering POO and SRP Here`s the link of the…
Davi
  • 17
  • 5
-2
votes
2 answers

C socket programming receiving unknown length of data

Hi I designed a code to get the length of unknown data coming in to the socket I need help because I can't find where my code get stuck in this function. Thanks for any help int recvlen(int s){ //peak all received data and returns the length …
정영목
  • 1
  • 2
-2
votes
3 answers

How to get a file size in Bytes or in MB's through a URL

I am new to Java.. I was trying to get the file size from a URL but I failed can any one help me how to get the URL size in bytes?
bro1o1
  • 37
  • 2
  • 9
1 2 3
24
25