Re: [dev] [surf] Using curl

From: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat, 02 Feb 2013 15:42:40 +0100

Greetings.

On Sat, 02 Feb 2013 15:42:40 +0100 Jochen Sprickerhof <dwm_AT_jochen.sprickerhof.de> wrote:
> * Christoph Lohmann <20h_AT_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 '$0';" \
> > " sleep 5;\"", \
> > d, useragent, r, NULL \
> > } \
> > }
> >
> > Please, try it out and report if I am missing something. I haven’t yet
> > investigated, if curl handles this has signing of webkit.
>
> This even works for the "Not authorized" problem v4hn and I had, thanks!

Thanks for the testing. That download handler is now in the default dis‐
tribution.


Sincerely,

Christoph Lohmann
Received on Sat Feb 02 2013 - 15:42:40 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 02 2013 - 15:48:04 CET