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
2
votes
2 answers

PHP Content-length header delays loading

I have a PHP webpage that takes a BLOB from a database and outputs it as an image. When the user uploaded this image I stored the filesize (e.g. 491099) into the database. When the image is requested through my webpage I add a watermark, set the…
Jules
  • 7,148
  • 6
  • 26
  • 50
2
votes
5 answers

Content-Length header always zero

I set a header in the following way: header('Content-Length: ' . filesize($strPath)); On my PC with ZendServer it works fine and I can download a file with the correct file size. On the production server, a Solaris with Apache and compiled PHP, I…
rtacconi
  • 14,317
  • 20
  • 66
  • 84
2
votes
3 answers

SQL SUM of a ntext field using LEN

I want to count the number of characters in a ntext column and then get the SUM For example I have the following query: SELECT LEN(field1) AS Length, field1 FROM table It will return results like: |Length|field1| ------------------- 4 abcd …
luke2012
  • 1,724
  • 1
  • 13
  • 20
1
vote
1 answer

How to check length which can be null

I would like to check out my textarea length. This is my code:

Additional information to order: