Fixing cookie handling for https/http by using curl.
This commit is contained in:
parent
77036565da
commit
d6a3e28be2
|
@ -35,10 +35,11 @@ static Bool hidebackground = FALSE;
|
||||||
/* DOWNLOAD(URI, referer) */
|
/* DOWNLOAD(URI, referer) */
|
||||||
#define DOWNLOAD(d, r) { \
|
#define DOWNLOAD(d, r) { \
|
||||||
.v = (char *[]){ "/bin/sh", "-c", \
|
.v = (char *[]){ "/bin/sh", "-c", \
|
||||||
"st -e /bin/sh -c \"wget '$0'" \
|
"st -e /bin/sh -c \"curl -J -O --user-agent '$1'" \
|
||||||
" --load-cookies ~/.surf/cookies.txt" \
|
" --referer '$2'" \
|
||||||
" --user-agent '$1'" \
|
" -b ~/.surf/cookies.txt -c ~/.surf/cookies.txt '$0';" \
|
||||||
" --referer '$2' ; sleep 5\"", d, useragent, r, NULL \
|
" sleep 5;\"", \
|
||||||
|
d, useragent, r, NULL \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user