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: Dan Fandrich via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 12 Apr 2022 10:15:37 -0700
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 10:15:37 -0700
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