04-07-2009, 01:24 PM
Quote:It's probably too late, but...Thanks, I probably should have read the full man page (I just skimmed the readme). I'll try that when I resume the downloading. I'm not sure whether it will work or not, as technically, I'm not connecting to multiple files, but one php file that I'm passing a different parameter to each call. It's definitely worth a shot though.
I looked at the man page for curl (on a mac with OS 10.5.6) and it says:
Quote:you can get sequences of alphanumeric series by using [] as in: ftp://ftp.numericals.com/file[1-100].txt
Curl will attempt to re-use connections for multiple file transfers, so that getting many files from the same server will not do multiple connects / handshakes. This improves speed. Of course this is only done on files specified on a single command line and cannot be used between separate curl invokes.
This may have other consequences... like one file for all profiles instead of one per profile.
Anyway, thanks for posting the code. It made my morning a little more interesting. I had no idea it would be so easy to do this.
"What contemptible scoundrel stole the cork from my lunch?"
-W.C. Fields
-W.C. Fields