Receiving data to a local system from a remote system, or to initiate such a data transfer. Do not use this tag for question asking where to download off-site resource.
Questions tagged [download]
18430 questions
1126
votes
16 answers
Download a file with Android, and showing the progress in a ProgressDialog
I am trying to write a simple application that gets updated. For this I need a simple function that can download a file and show the current progress in a ProgressDialog. I know how to do the ProgressDialog, but I'm not sure how to display the…

Tom Leese
- 19,309
- 12
- 45
- 70
1008
votes
15 answers
How do I measure request and response times at once using cURL?
I have a web service that receives data in JSON format, processes the data, and then returns the result to the requester.
I want to measure the request, response, and total time using cURL.
My example request looks like:
curl -X POST -d @file…

sdasdadas
- 23,917
- 20
- 63
- 148
900
votes
40 answers
Download single files from GitHub
What are some tips on downloading a single file from a GitHub repo?
I don't want the URL for displaying the raw file; in the case of binaries, there's nothing.
http://support.github.com/discussions/feature-requests/41-download-single-file
Is it even…

Radek Simko
- 15,886
- 17
- 69
- 107
823
votes
6 answers
wget command to download a file and save as a different filename
I am downloading a file using the wget command. But when it downloads to my local machine, I want it to be saved as a different filename.
For example: I am downloading a file from www.examplesite.com/textfile.txt
I want to use wget to save the file…

noobcoder
- 11,983
- 10
- 39
- 62
657
votes
24 answers
How to trigger a file download when clicking an HTML button or JavaScript
This is crazy but I don't know how to do this, and because of how common the words are, it's hard to find what I need on search engines. I'm thinking this should be an easy one to answer.
I want a simple file download, that would do the same as…

brentonstrine
- 21,694
- 25
- 74
- 120
650
votes
31 answers
How to download a file with Node.js (without using third-party libraries)?
How do I download a file with Node.js without using third-party libraries?
I don't need anything special. I only want to download a file from a given URL, and then save it to a given directory.

greepow
- 7,003
- 4
- 17
- 8
602
votes
9 answers
Download large file in python with requests
Requests is a really nice library. I'd like to use it for downloading big files (>1GB).
The problem is it's not possible to keep whole file in memory; I need to read it in chunks. And this is a problem with the following code:
import requests
def…

Roman Podlinov
- 23,806
- 7
- 41
- 60
594
votes
1 answer
Do I need Content-Type: application/octet-stream for file download?
The HTTP standard says:
If this header [Content-Disposition: attachment] is used in a response
with the application/octet-stream content-type, the implied
suggestion is that the user agent should not display the response, but
directly enter a…

Paul Draper
- 78,542
- 46
- 206
- 285
490
votes
26 answers
Download a file by jQuery.Ajax
I have a Struts2 action in the server side for file downloading.
text/plain

hguser
- 35,079
- 54
- 159
- 293
469
votes
33 answers
Download File Using JavaScript/jQuery
I have a very similar requirement specified here.
I need to have the user's browser start a download manually when $('a#someID').click();
But I cannot use the window.href method, since it replaces the current page contents with the file you're…

Mithun Sreedharan
- 49,883
- 70
- 181
- 236
465
votes
24 answers
How can I download and save a file from the Internet using Java?
There is an online file (such as http://www.example.com/information.asp) I need to grab and save to a directory. I know there are several methods for grabbing and reading online files (URLs) line-by-line, but is there a way to just download and save…

echoblaze
- 11,176
- 13
- 44
- 49
452
votes
15 answers
Downloading a file from spring controllers
I have a requirement where I need to download a PDF from the website. The PDF needs to be generated within the code, which I thought would be a combination of freemarker and a PDF generation framework like iText. Any better way?
However, my main…

MilindaD
- 7,533
- 9
- 43
- 63
448
votes
7 answers
Download a file from NodeJS Server using Express
How can I download a file that is in my server to my machine accessing a page in a nodeJS server?
I'm using the ExpressJS and I've been trying this:
app.get('/download', function(req, res){
var file = fs.readFileSync(__dirname +…

Thiago Miranda de Oliveira
- 5,790
- 5
- 20
- 24
385
votes
12 answers
Download File to server from URL
Well, this one seems quite simple, and it is. All you have to do to download a file to your server is:
file_put_contents("Tmpfile.zip", file_get_contents("http://someurl/file.zip"));
Only there is one problem. What if you have a large file, like…

xaav
- 7,876
- 9
- 30
- 47
367
votes
18 answers
Using HTML5/JavaScript to generate and save a file
I've been fiddling with WebGL lately, and have gotten a Collada reader working. Problem is it's pretty slow (Collada is a very verbose format), so I'm going to start converting files to a easier to use format (probably JSON). I already have the code…

Toji
- 33,927
- 22
- 105
- 115