Displaying 1 result from an estimated 1 matches for "xmlmemstrdup".
2013 Apr 04
0
Changing HTTP proxy configurations at run time
...API_
if (WSAStartup(MAKEWORD(1, 1), &wsaData) != 0)
return;
#endif
- if (proxy == NULL) {
+ proxy = NULL;
proxyPort = 80;
env = getenv("no_proxy");
if (env && ((env[0] == '*') && (env[1] == 0)))
@@ -287,7 +284,7 @@
#endif
proxyUser = xmlMemStrdup(env);
}
- }
+
done:
initialized = 1;
}
This works fine for me (on a Mac) and I can simply use Sys.setenv(http_proxy=) to adjust the proxy server at run time.
I think this doesn't really cause overhead as the number of calls do download.file() is typically small and parsing the e...