Name
easy:GetInfo_Protocol -- get the protocol used in the connection
Synopsis
p = easy:GetInfo_Protocol()
Function
Returns the version used in the last http connection. The returned value will be exactly one of the #CURLPROTO_XXX values:

 
#CURLPROTO_DICT
#CURLPROTO_FILE
#CURLPROTO_FTP
#CURLPROTO_FTPS
#CURLPROTO_GOPHER
#CURLPROTO_HTTP
#CURLPROTO_HTTPS
#CURLPROTO_IMAP
#CURLPROTO_IMAPS
#CURLPROTO_LDAP
#CURLPROTO_LDAPS
#CURLPROTO_POP3
#CURLPROTO_POP3S
#CURLPROTO_RTMP
#CURLPROTO_RTMPE
#CURLPROTO_RTMPS
#CURLPROTO_RTMPT
#CURLPROTO_RTMPTE
#CURLPROTO_RTMPTS
#CURLPROTO_RTSP
#CURLPROTO_SCP
#CURLPROTO_SFTP
#CURLPROTO_SMB
#CURLPROTO_SMBS
#CURLPROTO_SMTP
#CURLPROTO_SMTPS
#CURLPROTO_TELNET
#CURLPROTO_TFTP

Inputs
none

Results
p
output value

Show TOC