search for: curl_slist_append

Displaying 8 results from an estimated 8 matches for "curl_slist_append".

2012 Feb 21
2
libvirt -user'question
...libvir-list/2012-February/msg00860.html So,I try to make the change on the mailing list you just added. - * Add a dummy expect header to stop CURL from waiting for a response code + * Add an empty expect header to stop CURL from waiting for a response code - curl->headers = curl_slist_append(curl->headers, "Expect: nothing"); + curl->headers = curl_slist_append(curl->headers, "Expect:"); and I did the follow steps in my computer: 1../configure --with-esx 2.make 3.make install 4../autogen.sh --prefix=$HOME/usr 5.make 6.make install I complete in...
2020 Jul 14
3
[PATCH nbdkit RFC 0/2] curl: Implement authorization scripts.
This is an RFC only, at the very least it lacks tests. This implements a rather complex new feature in nbdkit-curl-plugin allowing you to specify an external shell script that can be used to fetch an authorization token for services which requires a token or cookie for access, especially if that token must be renewed periodically. The motivation can be seen in the changes to the docs in patch 2.
2020 Jul 14
0
[PATCH nbdkit RFC 2/2] curl: Implement authorization scripts.
.... + */ + if (h->auth_headers) { + curl_easy_setopt (h->c, CURLOPT_HTTPHEADER, NULL); + curl_slist_free_all (h->auth_headers); + h->auth_headers = NULL; + } + + /* Copy the header=... parameters. */ + for (p = headers; p != NULL; p = p->next) { + h->auth_headers = curl_slist_append (h->auth_headers, p->data); + if (h->auth_headers == NULL) { + nbdkit_error ("curl_slist_append: %m"); + return -1; + } + } + + /* Copy the headers output by the script. */ + for (i = 0; i < script_headers.size; ++i) { + h->auth_headers = + curl_s...
2020 Jul 15
0
[PATCH nbdkit v2] curl: Implement header and cookie scripts.
...} + + else if (strcmp (key, "cookie-script-renew") == 0) { + if (nbdkit_parse_unsigned ("cookie-script-renew", value, + &cookie_script_renew) == -1) + return -1; + } + else if (strcmp (key, "header") == 0) { headers = curl_slist_append (headers, value); if (headers == NULL) { @@ -210,6 +228,16 @@ curl_config (const char *key, const char *value) } } + else if (strcmp (key, "header-script") == 0) { + header_script = value; + } + + else if (strcmp (key, "header-script-renew") == 0) { + if...
2020 Jul 15
2
[PATCH nbdkit v2] curl: Implement header and cookie scripts.
Evolution of this patch series: https://www.redhat.com/archives/libguestfs/2020-July/thread.html#00073 Instead of auth-script, this implements header-script and cookie-script. It can be used for similar purposes but the implementation is somewhat saner. Rich.
2018 Dec 04
3
patch to support custom HTTP headers in download.file() and url()
...); + sheaders = CAR(args); + if(TYPEOF(sheaders) != NILSXP && !isString(sheaders)) + error(_("invalid '%s' argument"), "headers"); + if(TYPEOF(sheaders) != NILSXP) { + for (int i = 0; i < LENGTH(sheaders); i++) { + struct curl_slist *tmp = + curl_slist_append(headers, CHAR(STRING_ELT(sheaders, i))); + if (!tmp) { + curl_slist_free_all(headers); + error(_("out of memory")); + } + headers = tmp; + } + } /* This comes mainly from curl --libcurl on the call used by download.file(method = "curl"). @@ -502,7 +515,...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...RL_GNUTLS_3 U curl_multi_add_handle@@CURL_GNUTLS_3 U curl_multi_fdset@@CURL_GNUTLS_3 U curl_multi_init@@CURL_GNUTLS_3 U curl_multi_perform@@CURL_GNUTLS_3 U curl_multi_remove_handle@@CURL_GNUTLS_3 U curl_slist_append@@CURL_GNUTLS_3 U curl_slist_free_all@@CURL_GNUTLS_3 U curl_unescape@@CURL_GNUTLS_3 U curl_version@@CURL_GNUTLS_3 U curl_version_info@@CURL_GNUTLS_3 U fprintf@@GLIBC_2.2.5 00000000000038e0 t frame_dummy...
2008 May 07
1
[BioC] RCurl loading problem with 64 bit linux distribution
...RL_GNUTLS_3 U curl_multi_add_handle@@CURL_GNUTLS_3 U curl_multi_fdset@@CURL_GNUTLS_3 U curl_multi_init@@CURL_GNUTLS_3 U curl_multi_perform@@CURL_GNUTLS_3 U curl_multi_remove_handle@@CURL_GNUTLS_3 U curl_slist_append@@CURL_GNUTLS_3 U curl_slist_free_all@@CURL_GNUTLS_3 U curl_unescape@@CURL_GNUTLS_3 U curl_version@@CURL_GNUTLS_3 U curl_version_info@@CURL_GNUTLS_3 U fprintf@@GLIBC_2.2.5 00000000000038e0 t frame_dummy...