curl_rtmp_msg="no (--with-librtmp)"
curl_psl_msg="no (--with-libpsl)"
curl_altsvc_msg="enabled (--disable-alt-svc)"
- curl_headers_msg="no (--enable-headers-api)"
+curl_headers_msg="enabled (--disable-headers-api)"
curl_hsts_msg="enabled (--disable-hsts)"
ssl_backends=
curl_h1_msg="enabled (internal)"
AS_HELP_STRING([--enable-headers-api],[Enable headers-api support])
AS_HELP_STRING([--disable-headers-api],[Disable headers-api support]),
[ case "$enableval" in
- yes)
+ *)
AC_MSG_RESULT(yes)
- AC_DEFINE(USE_HEADERS_API, 1, [enable headers-api])
- curl_headers_msg="enabled";
;;
- *) AC_MSG_RESULT(no)
+ no) AC_MSG_RESULT(no)
+ curl_headers_msg="no (--enable-headers-api)"
+ AC_DEFINE(CURL_DISABLE_HEADERS_API, 1, [disable headers-api])
;;
esac ],
- AC_MSG_RESULT(no)
+ AC_MSG_RESULT(yes)
)
dnl only check for HSTS if there's SSL present
Disable the GOPHER protocol.
+## CURL_DISABLE_HEADERS_API
+
+Disable the HTTP header API.
+
## CURL_DISABLE_HSTS
Disable the HTTP Strict Transport Security support.
- The Hyper HTTP backend
- HTTP/3 support and options
- `CURLSSLOPT_NATIVE_CA` (No configure option, feature built in when supported)
- - The headers API: `curl_easy_header` and `curl_easy_nextheader`.
The output will be written to standard output, but this can be switched to
standard error by using %{stderr}.
-EXPERIMENTAL feature: Output HTTP headers from the most recent request by
-using \fB%header{name}\fP where \fBname\fP is the case insensitive name of the
-header (without the trailing colon). The header contents are exactly as sent
-over the network, with leading and trailing whitespace trimmed. Added in curl
-7.83.0.
+Output HTTP headers from the most recent request by using \fB%header{name}\fP
+where \fBname\fP is the case insensitive name of the header (without the
+trailing colon). The header contents are exactly as sent over the network,
+with leading and trailing whitespace trimmed. Added in curl 7.84.0.
.B NOTE:
The %-symbol is a special symbol in the win32-environment, where all
server. (Added in 7.15.4)
.TP
.B header_json
-EXPERIMENTAL feature.
-
A JSON object with all HTTP response headers from the recent transfer. Values
are provided as arrays, since in the case of multiple headers there can be
multiple values.
int request,
struct curl_header **hout);
.SH DESCRIPTION
-EXPERIMENTAL feature!
-
\fIcurl_easy_header(3)\fP returns a pointer to a "curl_header" struct in
\fBhout\fP with data for the HTTP response header \fIname\fP. The case
insensitive nul-terminated header name should be specified without colon.
curl_easy_header(easy, "Content-Type", 0, CURLH_HEADER, -1, &type);
.fi
.SH AVAILABILITY
-Added in 7.83.0
+Added in 7.83.0. Officially supported since 7.84.0.
.SH RETURN VALUE
This function returns a CURLHcode indicating success or error.
.IP "CURLHE_BADINDEX (1)"
struct curl_header *prev);
.fi
.SH DESCRIPTION
-EXPERIMENTAL feature!
-
This function lets an application iterate over all previously received HTTP
headers.
}
.fi
.SH AVAILABILITY
-Added in 7.83.0
+Added in 7.83.0. Officially supported since 7.84.0.
.SH RETURN VALUE
This function returns the next header, or NULL when there are no more
(matching) headers or an error occurred.
#include "curl_memory.h"
#include "memdebug.h"
-#if !defined(CURL_DISABLE_HTTP) && defined(USE_HEADERS_API)
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_HEADERS_API)
/* Generate the curl_header struct for the user. This function MUST assign all
struct fields in the output struct. */
***************************************************************************/
#include "curl_setup.h"
-#if !defined(CURL_DISABLE_HTTP) && defined(USE_HEADERS_API)
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_HEADERS_API)
struct Curl_header_store {
struct Curl_llist_element node;
#ifndef ENABLE_WAKEUP
"wakeup",
#endif
-#ifndef USE_HEADERS_API
+#ifdef CURL_DISABLE_HEADERS_API
"headers-api",
#endif
NULL