src/hg/lib/cart.c 1.118

1.118 2010/04/14 07:42:57 galt
Adding support for http(s) proxy
Index: src/hg/lib/cart.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/cart.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -b -B -U 4 -r1.117 -r1.118
--- src/hg/lib/cart.c	12 Apr 2010 16:16:19 -0000	1.117
+++ src/hg/lib/cart.c	14 Apr 2010 07:42:57 -0000	1.118
@@ -1230,8 +1230,11 @@
 struct cart *cart = cartNew(hguid, hgsid, exclude, oldVars);
 cartExclude(cart, sessionVar);
 if (sameOk(cfgOption("signalsHandler"), "on"))  /* most cgis call this routine */
     initSigHandlers(hDumpStackEnabled());
+char *httpProxy = cfgOption("httpProxy");  /* most cgis call this routine */
+if (httpProxy) 
+    setenv("http_proxy", httpProxy, TRUE);   /* net.c cannot see the cart, pass the value through env var */
 return cart;
 }
 
 struct cart *cartAndCookieWithHtml(char *cookieName, char **exclude,