Re: [dev] [surf] Using curl

2013-02-02 Thread Christoph Lohmann
Greetings. On Sat, 02 Feb 2013 15:42:40 +0100 Jochen Sprickerhof wrote: > * Christoph Lohmann <2...@r-36.net> [2013-02-02 10:18]: > > #define DOWNLOAD(d, r) { \ > > .v = (char *[]){ "/bin/sh", "-c", \ > > "st -e /bin/sh -c \"curl -J -O --user-agent '$1'" \ > > " --ref

Re: [dev] [surf] Using curl

2013-02-02 Thread Jochen Sprickerhof
* Christoph Lohmann <2...@r-36.net> [2013-02-02 10:18]: > #define DOWNLOAD(d, r) { \ > .v = (char *[]){ "/bin/sh", "-c", \ > "st -e /bin/sh -c \"curl -J -O --user-agent '$1'" \ > " --referer '$2'" \ > " -b ~/.surf/cookies.txt -c ~/.surf/cookies.txt '$

[dev] [surf] Using curl

2013-02-02 Thread Christoph Lohmann
Greetings comrades. In the recent e‐mails there was a discussion about downloads and the ‐‐content‐disposition experimental feature of wget. Curl already has that feature, so I ported the standard wget command to curl. #define DOWNLOAD(d, r) { \ .v = (char *[]){ "/bin/sh", "-c", \