Displaying 1 result from an estimated 1 matches for "fullhead".
Did you mean:
fullread
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...ar *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 = RxmlNanoHTTPOpen(url, NULL, headers, cacheOK);
+
+ if (agent || headers) {
+ fullheaders = malloc((agent ? strlen(agent) : 0) +
+ (headers ? strlen(headers) : 0) + 1);...