summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2013-02-02 15:42:09 +0100
committerChristoph Lohmann <20h@r-36.net>2013-02-02 15:42:09 +0100
commitd6a3e28be24a82647ba3f0b6f8dd39d0097a4c24 (patch)
tree1e16a998d0c5d528e0dd4efabc199430493efad1 /config.def.h
parent77036565da810b782043e3dcdeca0e15ef95ffe9 (diff)
downloadsurf-d6a3e28be24a82647ba3f0b6f8dd39d0097a4c24.tar.gz
surf-d6a3e28be24a82647ba3f0b6f8dd39d0097a4c24.tar.bz2
surf-d6a3e28be24a82647ba3f0b6f8dd39d0097a4c24.zip
Fixing cookie handling for https/http by using curl.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index 1cba4d7..a221c86 100644
--- a/config.def.h
+++ b/config.def.h
@@ -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 \
} \
}