Displaying 1 result from an estimated 1 matches for "ri_httpopen".
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...har *headers,
const int cacheOK);
+static void *in_R_HTTPOpen2(const char *url, const char *agent, const
char *headers, const int cacheOK);
static int in_R_HTTPRead2(void *ctx, char *dest, int len);
static void in_R_HTTPClose2(void *ctx);
static void *in_R_FTPOpen2(const char *url);
-#define Ri_HTTPOpen(url, headers, cacheOK) \
- (meth ? in_R_HTTPOpen2(url, headers, cacheOK) : \
- in_R_HTTPOpen(url, headers, cacheOK));
+#define Ri_HTTPOpen(url, agent, headers, cacheOK) \
+ (meth ? in_R_HTTPOpen2(url, agent, headers, cacheOK) : \
+ in_R_HTTPOpen(url, agent, headers, cacheOK));
#defi...