diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2016-11-23 10:44:18 +0100 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-08-22 15:10:39 +0000 |
commit | a9bdcdf6408fd14773dabb6b816e63534958a6e2 (patch) | |
tree | cd620688cfb63e1ac94e63047c79878109fdafe8 /include/curl/curl.h | |
parent | 48cca90e8ac09ff7a24c4babbc77489b75bd9a34 (diff) | |
download | gnurl-a9bdcdf6408fd14773dabb6b816e63534958a6e2.tar.gz gnurl-a9bdcdf6408fd14773dabb6b816e63534958a6e2.tar.bz2 gnurl-a9bdcdf6408fd14773dabb6b816e63534958a6e2.zip |
add CURLINFO_SCHEME, CURLINFO_PROTOCOL, and %{scheme}
Adds access to the effectively used protocol/scheme to both libcurl and
curl, both in string and numeric (CURLPROTO_*) form.
Note that the string form will be uppercase, as it is just the internal
string.
As these strings are declared internally as const, and all other strings
returned by curl_easy_getinfo() are de-facto const as well, string
handling in getinfo.c got const-ified.
Closes #1137
Diffstat (limited to 'include/curl/curl.h')
-rw-r--r-- | include/curl/curl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index bf7114897..df2914e2d 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -2277,9 +2277,11 @@ typedef enum { CURLINFO_TLS_SSL_PTR = CURLINFO_SLIST + 45, CURLINFO_HTTP_VERSION = CURLINFO_LONG + 46, CURLINFO_PROXY_SSL_VERIFYRESULT = CURLINFO_LONG + 47, + CURLINFO_PROTOCOL = CURLINFO_LONG + 48, + CURLINFO_SCHEME = CURLINFO_STRING + 49, /* Fill in new entries below here! */ - CURLINFO_LASTONE = 47 + CURLINFO_LASTONE = 49 } CURLINFO; /* CURLINFO_RESPONSE_CODE is the new name for the option previously known as |