From: Steve Holme Date: Tue, 23 Apr 2013 18:43:06 +0000 (+0100) Subject: url: Added smtp and pop3 hostnames to the protocol detection list X-Git-Tag: curl-7_31_0~123 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2af9fd49608700d07384431f350823a6c76e8185;p=thirdparty%2Fcurl.git url: Added smtp and pop3 hostnames to the protocol detection list --- diff --git a/lib/url.c b/lib/url.c index b43829220e..cef8a9806a 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3771,6 +3771,10 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data, protop = "LDAP"; else if(checkprefix("IMAP.", conn->host.name)) protop = "IMAP"; + else if(checkprefix("SMTP.", conn->host.name)) + protop = "smtp"; + else if(checkprefix("POP3.", conn->host.name)) + protop = "pop3"; else { protop = "http"; }