Displaying 1 result from an estimated 1 matches for "inetconn".
Did you mean:
isnetconn
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...PROTECT(2);
if(ctxt == NULL) status = 1;
else {
@@ -766,18 +784,31 @@ static SEXP in_do_download(SEXP args)
}
-void *in_R_HTTPOpen(const char *url, const char *headers, const int cacheOK)
+void *in_R_HTTPOpen(const char *url, const char *agent, const char
*headers, const int cacheOK)
{
inetconn *con;
void *ctxt;
int timeout = asInteger(GetOption1(install("timeout")));
DLsize_t len = -1;
char *type = NULL;
+ char *fullheaders = NULL;
if(timeout == NA_INTEGER || timeout <= 0) timeout = 60;
RxmlNanoHTTPTimeout(timeout);
- ctxt = RxmlNanoHTTP...