Introduction
Introduction Statistics Contact Development Disclaimer Help
tFixing cookie handling for https/http by using curl. - surf - customized build…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit d6a3e28be24a82647ba3f0b6f8dd39d0097a4c24
parent 77036565da810b782043e3dcdeca0e15ef95ffe9
Author: Christoph Lohmann <[email protected]>
Date: Sat, 2 Feb 2013 15:42:09 +0100
Fixing cookie handling for https/http by using curl.
Diffstat:
M config.def.h | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/config.def.h b/config.def.h
t@@ -35,10 +35,11 @@ static Bool hidebackground = FALSE;
/* DOWNLOAD(URI, referer) */
#define DOWNLOAD(d, r) { \
.v = (char *[]){ "/bin/sh", "-c", \
- "st -e /bin/sh -c \"wget '$0'" \
- " --load-cookies ~/.surf/cookies.txt" \
- " --user-agent '$1'" \
- " --referer '$2' ; sleep 5\"", d, useragent, r, NULL \
+ "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 \
} \
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.