download

Bash script for downloading files with Curl

I'm trying to knock together a little batch script for downloading files, that takes a URL as its first parameter and a local filename as its second parameter. In testing I've learned that its tripping up on spaces in the output filename, so I've tried using sed to escape them, but its not working. #!/bin/bash clear echo Downloading $1...

PHP + MySQL Web Stats

I wondering what ideas you guys had on the best method of doing some web counters backend. I will be tracking downloads via PHP, I'm looking at around 1.5 million "downloads" per day and all I will be storing would be "userid" and "downloadid". Possibly time too? What would the best way be? At the end of every day should I compile all th...

.xml document downloadable?

Hello. I have this .xml file http://www.anitard.org/layouts/blogger_layouts/spicenwolf/spice_and_wolf_www.anitard.org.xml When i make a link to this in my website you will try to view that document, but that is not possible. How do i make it downloadable? So when i click on my link the .xml document will request to download it. ...

Why is the last chunk of HTTP download really slow?

i have content length available in the beginning of the download. so i know how much bytes i need to request for. i download in chunks of 1024 bytes. in the last chunk i request for the number of bytes remaining. i am using the read function. but the last chunk takes a lot of time to arrive. is it normal? ...

What's a Django/Python solution for providing a one-time url for people to download files?

I'm looking for a way to sell someone a card at an event that will have a unique code that they will be able to use later in order to download a file (mp3, pdf, etc.) only one time and mask the true file location so a savvy person downloading the file won't be able to download the file more than once. It would be nice to host the file on...

secure and resume support file downloading with php

I want to give permission to some of my website users to download a specific file. the download needs to be resume support just for user convenience. For that reason it came to my mind to secure the file with this piece of code: // Check for user session and privileges if it's okay continue ob_end_clean(); $data = file_get_contents("c:...

Functionality of a web application to handle user's request to download files from SFTP Server

In our Java web application, customer wants to upload some large files to a SFTP server and download directly from there. The customers do not want to use any third party tool rather they want this functionality in the application itself. The file upload part has been taken care of by the JFileUpload applet component & libraries. Once t...

How do you download a previous version of the iPhone SDK?

I'm developing on the current 3.1 SDK, but I'd like my app to support all versions of the iPhone 2.2.1 onwards. I don't have a copy of the older SDKs around anymore and I can't find them on Apple's site. (We've always been at war with Eastasia.) Is there still a way to get it from the iPhone Dev Center? ...

how to share files between program instances

Hi, my desktop application lets users add (~20MB) files, which should then be available for other users of the application. Currently I handle the uploads/downloads with my own code, but I am getting errors from file transfers that dropout, corrupted files, etc. I really don't want to deal with all this so I plan to use an existing file...

where can i get the spring framework 3.0 distribution?

has anyone been able to download the spring framework 3.0.0.M4 release from the spring source site... (or can you provide an alternative download page)? http://www.springsource.org/download am I missing something..., the site is giving me the runaround... when i get to the "Spring Community Downloads" page and choose spring from the L...

How do I move image in the front of Download Now in javascript code?

How do I move this image http://svastara.info/.s/img/icon/download1.png in the front of Download now? Should look something like this: image Download Now var CountdownTimer = function( id, count, imgurl ) { this.construct(id, count, imgurl); } CountdownTimer.prototype = { construct: function(id,count,imgurl) { th...

Dynamic download link algorithm

I have seen a couple of websites that have a dynamic download link. They ask for a valid email address and send the dynamically created download link to that address. E.X. www.mysite.domain/hashvalue1 But how they do that, since the file exists on the domain in a specific location? www.mysite.domain/downloads Is there any guide around...

Downloading MDB (Access) file from IIS

This question might be better asked over on ServerFault, but since this is related to a programming project, I'll ask here. Simply put, how do I configure IIS to let me download an Access (.MDB) file the same way it lets me download .HTML, .EXE, etc. files? I've tried taking MDB out of the mime types, changing the extension to .DAT, te...

How do Download Managers download huge files on HTTP without multiple requests?

I was downloading a 200MB file yesterday with FlashGet in the statistics it showed that it was using the HTTP1.1 protocol. I was under the impression that HTTP is a request-response protocol and most generally used for web pages weighing a few KiB...I don't quite understand how it can download MB's or GB's of data and that too simultaneo...

How can I get browsers to download an exe instead of opening it in the browser window?

I have a website from which I want to enable browser users to download an exe. I am testing it with a very simple HTML file which I load into the web browser with "File>Open". The "body" looks something like this: <body> <a href="http://www.example.com/myprogram.exe" target="_self">click to download exe</a> <a href="http://www.example....

How to get a remote-file's mtime before downloading it in Ruby?

I have the below code, which simply downloads a file and saves it. I want to run it every 30 seconds and check if the remote-file's mtime has changed and download it if it has. I'll be creating a thread which sleeps 30seconds after every iteration of an endless loop for that purpose, but; how do I check a remote file's mtime without down...

Auto start file download after form submission

I have a web form that uses complete online. When they press submit it will start a file download for them. At the moment, I process the form submission and generate a suitable file for the user and fire it off with suitable headers. eg... header('Content-type: "application/octet-stream"'); header('Content-Disposition: attachment; file...

urlopen error 10045, 'address already in use' while downloading in Python 2.5 on Windows

I'm writing code that will run on Linux, OS X, and Windows. It downloads a list of approximately 55,000 files from the server, then steps through the list of files, checking if the files are present locally. (With SHA hash verification and a few other goodies.) If the files aren't present locally or the hash doesn't match, it downloads t...

Better way to download a binary file?

I have a site where a user can download a file. Some files are extremely large (the largest being 323 MB). When I test it to try and download this file I get an out of memory exception. The only way I know to download the file is below. The reason I'm using the code below is because the URL is encoded and I can't let the user link di...

PHP Force Download of Remote File

Hello all, I have a bunch of videos stored on my Amazon S3 storage. I'm working on creating a PHP script, very similar to the one here, where users can download the videos to their hard drive. I'd like to use something like this: <?php $file_name = $_GET['file']; $file_url = 'http://www.myamazons3.com/' . $file_name; header('Content...