Displaying 1 result from an estimated 1 matches for "wictxt".
Did you mean:
ctxt
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...(fullheaders, agent);
+ if (headers) strcat(fullheaders, headers);
+ }
+
+ ctxt = RxmlNanoHTTPOpen(url, NULL, fullheaders, cacheOK);
+ if (fullheaders) free(fullheaders);
+
if(ctxt != NULL) {
int rc = RxmlNanoHTTPReturnCode(ctxt);
if(rc != 200) {
@@ -885,7 +916,7 @@ typedef struct wictxt {
HINTERNET session;
} wIctxt, *WIctxt;
-static void *in_R_HTTPOpen2(const char *url, const char *headers,
+static void *in_R_HTTPOpen2(const char *url, const char *agent, const
char *headers,
const int cacheOK)
{
WIctxt wictxt;
@@ -896,7 +927,7 @@ static void *in_R_HTTPOpen2(con...