PDA

View Full Version : how to calculate content-length..?



gunjanjain
12-06-2018, 02:02 AM
Hello friends,

how to calculate content-length..?

shubha1206
12-06-2018, 04:13 AM
The Content-Length value should be calculated by totaling all data after the termination of the message headers. In the case of your example, this is everything after this point (with CRLF characters included for readability).
or you can count by microsoft word.In microsoft word you have click on words in the bottom left.

roycpo
12-06-2018, 07:30 AM
The Content-Length entity header indicates the size of the entity-body, in bytes, sent to the recipient and the Content-Length HTTP header is used to inform the server or client of the size of the request or response body that is being transferred.

MVMInfotech
12-07-2018, 12:38 AM
The Content-Length HTTP header is used to inform the server or client of the size of the request or response body that is being transferred

efusionworld
12-07-2018, 12:45 AM
A request header can contain a content length header. If it is present, it reports the number of bytes present in the request when uploading a file or files.

dombowkett
12-14-2018, 02:25 AM
You can use word document to check content length in a second.

imriakapoor
12-14-2018, 03:46 AM
Hello friends,

how to calculate content-length..?

I think you need this: http://string-functions.com/length.aspx

astrodost
01-15-2019, 02:08 AM
Content-Length header and calculated Content-Length showing ...
https://community.apigee.com/.../content-length-header-and-calculated-content-lengt....
When I am calculating the Content-Length value using a Javascript policy, it differs from the value present in the Content-Length header

cchaphekar
11-15-2019, 09:25 AM
Hello friends,

how to calculate content-length..?

You can easily calculate content length by using this online tool https://www.onlineutility.in/Calculate_String_Length

Paro
11-19-2019, 06:39 AM
A request header can contain a "content-length" header. If it is present, it reports the number of bytes present in the request when uploading a file or files.

jayam
01-21-2020, 06:45 AM
The Content-Length value should be calculated by totaling all data after the termination of the message headers. In the case of your example, this is everything after this point (with CRLF characters included for readability).

ravikiran
01-21-2020, 07:57 AM
The Content-Length header is a number denoting an the exact byte length of the HTTP body.Generally the Content-Length header is used for HTTP 1.1 so that the receiving party knows when the current response* has finished, so the connection can be reused for another request.

godwin
02-11-2021, 02:01 AM
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.