aboutsummaryrefslogtreecommitdiff
path: root/lib/urldata.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2016-11-23 10:44:18 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-25 00:45:18 +0100
commitba410f6c64af26292d1dc549829c25af5602fbf7 (patch)
treec48cefe5f5626983fab185baeec1970a6c53f45f /lib/urldata.h
parent54789f94448e1a624f02cb4e4e739afe4a687656 (diff)
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 'lib/urldata.h')
-rw-r--r--lib/urldata.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 6e548285b..05f600319 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -1174,6 +1174,9 @@ struct PureInfo {
char conn_local_ip[MAX_IPADR_LEN];
long conn_local_port;
+ const char *conn_scheme;
+ unsigned int conn_protocol;
+
struct curl_certinfo certs; /* info about the certs, only populated in
OpenSSL builds. Asked for with
CURLOPT_CERTINFO / CURLINFO_CERTINFO */