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: libcurl LDAP in asyncmod
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Patrick Monnerat via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 2 May 2021 00:44:12 +0200
On 5/1/21 10:15 PM, Fulup Ar Foll wrote:
>
> _at_patrick: retrieving connection code with LDAP works in both
> synchronous and asynchronous mode and not only in HTTP,TFTP,...
>
>
There are two things:
- the curl result code of type CURLcode: this one is always available as
this is the value returned by most functions in the API. It is generated
by curl and never transmitted across a connection.
- The protocol returned code: this code is protocol-dependent and sent
by the server within a response. You can get it with
curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &code). It has no
direct relationship with the curl result code.
Your initial question seemed to be about the second, that's why I
pointed you on its unavailablity for the LDAP protocol.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-05-02
Date: Sun, 2 May 2021 00:44:12 +0200
On 5/1/21 10:15 PM, Fulup Ar Foll wrote:
>
> _at_patrick: retrieving connection code with LDAP works in both
> synchronous and asynchronous mode and not only in HTTP,TFTP,...
>
>
There are two things:
- the curl result code of type CURLcode: this one is always available as
this is the value returned by most functions in the API. It is generated
by curl and never transmitted across a connection.
- The protocol returned code: this code is protocol-dependent and sent
by the server within a response. You can get it with
curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &code). It has no
direct relationship with the curl result code.
Your initial question seemed to be about the second, that's why I
pointed you on its unavailablity for the LDAP protocol.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2021-05-02