[PATCH] Strip HttpOnly from cookies for wget

From: Jochen Sprickerhof <jochen_AT_sprickerhof.de>
Date: Thu, 31 Jan 2013 00:20:48 +0100

---
 config.def.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/config.def.h b/config.def.h
index 1cba4d7..90ae89c 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -35,8 +35,8 @@ 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" \
+		"st -e /bin/bash -c \"wget '$0'" \
+		" --load-cookies <(sed -e 's/#HttpOnly_//g' ~/.surf/cookies.txt)" \
 		" --user-agent '$1'" \
 		" --referer '$2' ; sleep 5\"", d, useragent, r, NULL \
 	} \
-- 
1.7.10.4
--CdrF4e02JqNVZeln--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Thu Jan 31 2013 - 16:48:01 CET