Displaying 3 results from an estimated 3 matches for "header_script".
2020 Jul 15
0
[PATCH nbdkit v2] curl: Implement header and cookie scripts.
...file.sh
EXTRA_DIST += test-curl-file.sh
LIBGUESTFS_TESTS += test-curl
+LIBNBD_TESTS += \
+ test-curl-header-script \
+ test-curl-cookie-script \
+ $(NULL)
test_curl_SOURCES = \
test-curl.c \
@@ -524,6 +528,49 @@ test_curl_LDADD = \
libtest.la \
$(LIBGUESTFS_LIBS) \
$(NULL)
+
+test_curl_header_script_SOURCES = \
+ test-curl-header-script.c \
+ web-server.c \
+ web-server.h \
+ $(NULL)
+test_curl_header_script_CPPFLAGS = \
+ -I$(top_srcdir)/common/utils \
+ $(NULL)
+test_curl_header_script_CFLAGS = \
+ $(WARNINGS_CFLAGS) \
+ $(LIBNBD_CFLAGS) \
+ $(PTHREAD_CFLAGS) \
+ $(NULL)
+test_curl_header_sc...
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.
2020 Jul 20
1
Re: [PATCH nbdkit v2] curl: Implement header and cookie scripts.
...onst char *user = NULL;
> -static const char *user_agent = NULL;
> +const char *cainfo = NULL;
> +const char *capath = NULL;
> +char *cookie = NULL;
> +const char *cookie_script = NULL;
> +unsigned cookie_script_renew = 0;
> +struct curl_slist *headers = NULL;
> +const char *header_script = NULL;
> +unsigned header_script_renew = 0;
> +char *password = NULL;
All of these variables are already guaranteed zero-initialized without
being explicit,
> +long protocols = CURLPROTO_ALL;
although consistency with this initialization (which is not necessarily
0) makes sense.
>...