Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: https: curl_easy_perform() failed: Unsupported protocol
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Julien Matthey via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 12 Apr 2022 19:37:06 +0200
You are correct, what is going on? :-(
$curl -V
gives me:
curl 7.79.1 (Windows) libcurl/7.79.1 Schannel
Release-Date: 2021-09-22
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp
smtps telnet tftp
Features: AsynchDNS HSTS IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI
UnixSockets
My sample:
auto nfo = curl_version_info(CURLVERSION_NOW);
std::cout << nfo->version << std::endl;
auto protocols = nfo->protocols;
for (size_t i = 0; protocols[i] != NULL; i++)
std::cout << protocols[i] << ", ";
gives me:
7.82.0
dict, file, ftp, gopher, http, imap, ldap, mqtt, pop3, rtsp, smb, smtp,
telnet, tftp,
The executable links against libcurl.lib/libcurl-d.lib that is built
alongside it. I.E. the same I link against in my sample program.
EDIT:
I just saw the curl (curl.exe) project also links against many
additional libraries that I didn't see!
I will just copy paste the list and see what I get.
-Julien
Le 12.04.2022 à 19:15, Dan Fandrich via curl-library a écrit :
> On Tue, Apr 12, 2022 at 07:07:51PM +0200, Julien Matthey via curl-library wrote:
>> I get "curl_easy_perform() failed: Unsupported protocol" for https requests:
> [...]
>> And here is my problem with it: it works with the curl.exe executable I also
>> built! Example:
>>
>> $curl *https*://www.google.com
>>
>> The *https *request WILL SUCCEED! -> connected through port 403 and the page
>> contents are printed.
>>
>> So why doesn't it work in my own sample project?
> Are you absolutely sure that the library is the same in both cases? Try
> printing the output of curl_version_info() in your program and compare it to
> the output of "curl -V" from the curl executable. I think you'll see a
> difference.
Date: Tue, 12 Apr 2022 19:37:06 +0200
You are correct, what is going on? :-(
$curl -V
gives me:
curl 7.79.1 (Windows) libcurl/7.79.1 Schannel
Release-Date: 2021-09-22
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp
smtps telnet tftp
Features: AsynchDNS HSTS IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI
UnixSockets
My sample:
auto nfo = curl_version_info(CURLVERSION_NOW);
std::cout << nfo->version << std::endl;
auto protocols = nfo->protocols;
for (size_t i = 0; protocols[i] != NULL; i++)
std::cout << protocols[i] << ", ";
gives me:
7.82.0
dict, file, ftp, gopher, http, imap, ldap, mqtt, pop3, rtsp, smb, smtp,
telnet, tftp,
The executable links against libcurl.lib/libcurl-d.lib that is built
alongside it. I.E. the same I link against in my sample program.
EDIT:
I just saw the curl (curl.exe) project also links against many
additional libraries that I didn't see!
I will just copy paste the list and see what I get.
-Julien
Le 12.04.2022 à 19:15, Dan Fandrich via curl-library a écrit :
> On Tue, Apr 12, 2022 at 07:07:51PM +0200, Julien Matthey via curl-library wrote:
>> I get "curl_easy_perform() failed: Unsupported protocol" for https requests:
> [...]
>> And here is my problem with it: it works with the curl.exe executable I also
>> built! Example:
>>
>> $curl *https*://www.google.com
>>
>> The *https *request WILL SUCCEED! -> connected through port 403 and the page
>> contents are printed.
>>
>> So why doesn't it work in my own sample project?
> Are you absolutely sure that the library is the same in both cases? Try
> printing the output of curl_version_info() in your program and compare it to
> the output of "curl -V" from the curl executable. I think you'll see a
> difference.
-- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2022-04-12