Results 1 to 13 of 13
  1. #1

  2. #2
    Member
    Join Date
    Dec 2017
    Posts
    57
    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.

  3. #3
    Senior Member
    Join Date
    Feb 2016
    Location
    Bangladesh
    Posts
    486
    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.

  4. #4
    Senior Member
    Join Date
    Jul 2018
    Posts
    454
    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

  5. #5
    Registered User
    Join Date
    Jul 2017
    Location
    Pompton Plains, NJ 07444
    Posts
    185
    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.

  6. #6

  7. #7

  8. #8
    Registered User
    Join Date
    Dec 2018
    Posts
    41
    Content-Length header and calculated Content-Length showing ...
    https://community.apigee.com/.../con...-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

  9. #9
    Registered User
    Join Date
    Nov 2019
    Posts
    1
    Quote Originally Posted by gunjanjain View Post
    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

  10. #10
    Senior Member
    Join Date
    Sep 2019
    Posts
    285
    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.

  11. #11
    Registered User
    Join Date
    Nov 2019
    Posts
    2,528
    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).

  12. #12
    Registered User
    Join Date
    Nov 2019
    Posts
    90
    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.

  13. #13
    Senior Member
    Join Date
    Mar 2020
    Posts
    1,214
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.