diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2022-06-28 17:23:45 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2022-08-23 08:56:07 +0200 |
commit | 52f616990537b22b0ec81475207caef25fdc0886 (patch) | |
tree | d094d96d045232db2e4bf2a5d049e928cbdf88cf /doc/man3/OSSL_HTTP_transfer.pod | |
parent | db302550d32c0a450a47ab17990dd1b66551186a (diff) |
OSSL_HTTP_REQ_CTX_nbio: add support for partial content-type string matching
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/18675)
Diffstat (limited to 'doc/man3/OSSL_HTTP_transfer.pod')
-rw-r--r-- | doc/man3/OSSL_HTTP_transfer.pod | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/man3/OSSL_HTTP_transfer.pod b/doc/man3/OSSL_HTTP_transfer.pod index 3df2f07d3d..ee9a2c7f0c 100644 --- a/doc/man3/OSSL_HTTP_transfer.pod +++ b/doc/man3/OSSL_HTTP_transfer.pod @@ -169,9 +169,17 @@ else HTTP POST with the contents of I<req> and optional I<content_type>, where the length of the data in I<req> does not need to be determined in advance: the BIO will be read on-the-fly while sending the request, which supports streaming. The optional list I<headers> may contain additional custom HTTP header lines. -If the parameter I<expected_content_type> -is not NULL then the client will check that the given content type string + +If the I<expected_content_type> argument is not NULL, +the client will check that the specified content-type string is included in the HTTP header of the response and return an error if not. +In the content-type header line the specified string should be present either +as a whole, or in case the specified string does not include a C<;> character, +it is sufficient that the specified string appears as a prefix +in the header line, followed by a C<;> character and any further text. +For instance, if I<expected_content_type> specifies C<text/html>, +this is matched by C<text/html>, C<text/html; charset=UTF-8>, etc. + If the I<expect_asn1> parameter is nonzero, a structure in ASN.1 encoding will be expected as response content. The I<max_resp_len> parameter specifies the maximum allowed |