Linked Questions

21 votes
7 answers
92k views

Does it give me any advantage if I set this header when generating normal HTML pages? I see that some frameworks out there will set this header property and I was wondering why... (Along with other ...
ellabeauty's user avatar
  • 2,599
2 votes
2 answers
15k views

I have a remote link from which I want to force download a file. Right now I am using cURL. My script works for this url (as I tested a different one): http://images.mob.org/iphonegame_img/...
Davit's user avatar
  • 1,398
6 votes
4 answers
9k views

Is it possible to keep checking with javascript if the filesize of a file on a webserver (e.g. http://www.mysite.com/myfile.js) is larger than 0 bytes and if so return a true or false value? Thanks ...
Ben Paton's user avatar
  • 1,442
7 votes
3 answers
43k views

I'm trying to make a post, however each time I did it, I would get a 411 response error. I'm using the requests library in python. In [1]: r.post(url) Out[1]: <Response [411]> So then I ...
tshauck's user avatar
  • 21.7k
13 votes
2 answers
2k views

My initial purpose was to verify the HTTP chunked transfer. But accidentally found this inconsistency. The API is designed to return a file to client. I use HEAD and GET methods against it. ...
smwikipedia's user avatar
1 vote
1 answer
2k views

I have some code that is using the solution from this question to validate that a certain image url exists. So I have code that looks like this: private bool PictureExists(string id) { ...
leora's user avatar
  • 198k
-1 votes
1 answer
1k views

can someone tell me how I can check filesize before downloading from page www. example I have file .rar in www.mypage.pl/users/programs/program.rar And I can download only with ftp but I want first ...
mariusz695's user avatar
0 votes
1 answer
760 views

Hy I would like to build a load bar when my site is loading. To do it I need to know how to get the entire file size witch must be loaded and the actual file size witch has already been loaded, to do ...
brenno_pellegrini's user avatar
0 votes
0 answers
1k views

I have a file I'd like Python to find out and print its file size. Unfortunately, the headers do not have the key content-length. Is there a workaround to finding the file size without content-length? ...
facialrecognition's user avatar
2 votes
1 answer
656 views

For HEAD requests, Rails seems to perform all the usual steps including rendering templates and then discards the respective output (sends back an empty response). I can't think of any way that ...
sudoremo's user avatar
  • 2,402
0 votes
0 answers
611 views

Is it possible to get the 'content-length' of a web page if the server doesn't include content-length as a header (even if the whole page is downloaded) without downloading the whole content? I am ...
kappa101's user avatar
0 votes
1 answer
608 views

ok so i did some research and it seemed the best way to determine the length of an audio file with javascript is to create an <audio> tag, set the file path to the src attribute, append the ...
celeriko's user avatar
  • 1,714
0 votes
0 answers
117 views

I tried various days to make a progress bar for my download, a task which I expected to be quite trivial. Everything seemed to to be just right, but the event.total-value was always 0 (or undefined in ...
Paflow's user avatar
  • 2,397