Let's say we have an image file, stored in a remote server (for example, let's take this image), how can we determine (in PHP code) it's file size?
If the file was on server, we would have used filesize (see here), but this wouldn't work on a remote file (see here).
The other alternative is to check for the "Content-Length", but I beli...
Has anyone successfully added a Content-Length header to regular ColdFusion (I'm using CF9) pages? I'm setting up a new server behind a Cisco load balancer with compression - the box refuses to compress anything without this header, but CF doesn't pass it by default.
<cfheader name="Content-Length" value="something" /> will set the head...
Hi,
I'm writing an application within asp.net MVC 3 Beta. The application will receive an HTTP GET request with various headers. After this request the client sends 8 bytes of data.
The client does NOT set a Content-Length header so as far as I can tell asp.net ignores the data that follows the headers.
I need this data! My Request...