+ Reply to Thread
Results 1 to 4 of 4

Thread: how to calculate content-length..?

  1. #1

  2. #2
    Web Hosting Expert mtgfanboy is on a distinguished road
    Join Date
    Aug 2018
    Location
    USA
    Posts
    382
    The Content-Length value should be calculated by totaling all data after the termination of the message headers.

  3. #3
    SuperExpert RepriseH is on a distinguished road
    Join Date
    Jul 2017
    Location
    India
    Posts
    918
    Content length can be calculated using various online tools.
    Cheap VPS | $1 VPS Hosting
    Cheap Dedicated Servers | Dedicated Servers starting from $29/MO

  4. #4
    Hosting Master MVMInfotech18 is on a distinguished road
    Join Date
    Aug 2018
    Location
    India
    Posts
    253
    If content length is not set, then just read the stream a chunk at a time, until the stream runs out. If the content length is set, then read as much (ofen all, depending on OS) of the stream in one chunk. My point is, either set the content-length correctly, or don't set it at all - at which point you'll probably be OK.

+ Reply to Thread

Similar Threads

  1. How will you calculate days between two dates in PHP?
    By designpluz in forum Programming Discussion
    Replies: 0
    Last Post: 07-24-2018, 12:01 PM
  2. How to get length of an array in PHP ?
    By designpluz in forum Programming Discussion
    Replies: 0
    Last Post: 07-20-2018, 06:53 AM
  3. Explain what is the meaning of CTR & how you can calculate?
    By sunled in forum Search Engine Optimization
    Replies: 1
    Last Post: 07-17-2018, 05:22 AM
  4. How to get length of an array in PHP ?
    By sunled in forum Programming Discussion
    Replies: 0
    Last Post: 05-17-2018, 05:39 AM
  5. What should be the article length?
    By rehanamalik in forum Search Engine Optimization
    Replies: 1
    Last Post: 12-30-2017, 08:16 PM

Posting Permissions

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