Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 213) sorted by relevance

123456789

/curl/tests/libtest/
H A Dlib512.c33 CURLcode code; in test() local
36 code = curl_global_init(CURL_GLOBAL_ALL); in test()
37 if(code == CURLE_OK) { in test()
48 code = curl_easy_setopt(curl2, CURLOPT_URL, URL); in test()
49 if(code == CURLE_OK) { in test()
51 code = curl_easy_perform(curl2); in test()
52 if(code == CURLE_OK) in test()
H A Dlib1509.c38 CURLcode code; in test() local
56 code = curl_easy_perform(curl); in test()
57 if(CURLE_OK != code) { in test()
60 __FILE__, __LINE__, code, curl_easy_strerror(code)); in test()
65 code = curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &headerSize); in test()
66 if(CURLE_OK != code) { in test()
69 __FILE__, __LINE__, code, curl_easy_strerror(code)); in test()
H A Dlib1556.c49 CURLcode code; in test() local
63 code = curl_easy_perform(curl); in test()
64 if(CURLE_OK != code) { in test()
67 __FILE__, __LINE__, code, curl_easy_strerror(code)); in test()
H A Dlib1522.c54 CURLcode code = TEST_ERR_MAJOR_BAD; in test() local
76 code = curl_easy_perform(curl); in test()
78 if(code == CURLE_OK) { in test()
93 printf("curl_easy_perform() failed. e = %d\n", code); in test()
100 return code; in test()
H A Dlib506.c132 CURLcode code; in test_fire() local
152 code = curl_easy_perform(curl); in test_fire()
153 if(code) { in test_fire()
156 tdata->url, i, (int)code); in test_fire()
179 CURLcode code = CURLE_OK; in test() local
331 code = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in test()
332 if(code != CURLE_OK) { in test()
H A Dlibntlmconnect.c46 CURLcode code; in callback() local
54 code = curl_easy_getinfo(ntlm_easy[idx], CURLINFO_LASTSOCKET, &longdata); in callback()
56 if(CURLE_OK != code) { in callback()
59 __FILE__, __LINE__, (int)code, curl_easy_strerror(code)); in callback()
H A Dlib678.c68 CURLcode code = CURLE_OUT_OF_MEMORY; in test_cert_blob() local
93 code = curl_easy_perform(curl); in test_cert_blob()
97 return code; in test_cert_blob()
H A Dlib586.c101 CURLcode code; in test_fire() local
118 code = curl_easy_perform(curl); in test_fire()
119 if(code != CURLE_OK) { in test_fire()
122 tdata->url, i, (int)code); in test_fire()
/curl/docs/examples/
H A Dhtmltitle.cpp91 CURLcode code; in init() local
101 if(code != CURLE_OK) { in init()
106 code = curl_easy_setopt(conn, CURLOPT_URL, url); in init()
107 if(code != CURLE_OK) { in init()
112 code = curl_easy_setopt(conn, CURLOPT_FOLLOWLOCATION, 1L); in init()
113 if(code != CURLE_OK) { in init()
119 if(code != CURLE_OK) { in init()
125 if(code != CURLE_OK) { in init()
260 CURLcode code; in main() local
281 code = curl_easy_perform(conn); in main()
[all …]
/curl/docs/libcurl/opts/
H A DCURLINFO_HTTP_CONNECTCODE.md18 CURLINFO_HTTP_CONNECTCODE - get the CONNECT response code
30 Pass a pointer to a long to receive the last received HTTP proxy response code
31 to a CONNECT request. The returned value is zero if no such response code was
50 long code;
51 res = curl_easy_getinfo(curl, CURLINFO_HTTP_CONNECTCODE, &code);
52 if(!res && code)
53 printf("The CONNECT response code: %03ld\n", code);
H A DCURLINFO_PROXY_ERROR.md69 Pass a pointer to a long to receive a detailed error code when the most recent
70 transfer returned a **CURLE_PROXY** error. That error code matches the
73 The error code is zero (**CURLPX_OK**) if no response code was available.
H A DCURLINFO_RESPONSE_CODE.md21 CURLINFO_RESPONSE_CODE - get the last response code
34 (OpenLDAP only) response code. This option was previously known as
36 no server response code has been received.
/curl/tests/unit/
H A Dunit1608.c54 CURLcode code; variable
60 code = curl_easy_setopt(easy, CURLOPT_DNS_SHUFFLE_ADDRESSES, 1L);
61 abort_unless(code == CURLE_OK, "curl_easy_setopt failed");
/curl/packages/vms/
H A Dcurlmsg.msg52 OBSOLETE4 <obsolete error code>
58 OBSOLETE10 <obsolete error code>
60 OBSOLETE12 <obsolete error code>
64 OBSOLETE16 <obsolete error code>
68 OBSOLETE20 <obsolete error code>
72 OBSOLETE24 <obsolete error code>
77 OBSOLETE29 <obsolete error code>
80 OBSOLETE32 <obsolete error code>
88 OBSOLETE40 <obsolete error code>
92 OBSOLETE44 <obsolete error code>
[all …]
/curl/src/
H A Dtool_vms.c92 void vms_special_exit(int code, int vms_show) in vms_special_exit() argument
99 decc$__posix_exit(code); in vms_special_exit()
103 if(code > CURL_LAST) { /* If CURL_LAST exceeded then */ in vms_special_exit()
107 vms_code = vms_cond[code] | vms_show; in vms_special_exit()
/curl/tests/data/
H A Dtest15116 This contains a response code >= 400, so curl shouldn't display this. Even
17 though it's a response code that triggers authentication, we're not using
28 HTTP GET with an error code that might trick authentication
H A Dtest15217 This contains a response code >= 400, so curl shouldn't display this. Even
18 though it's a response code that triggers authentication, we're not using
29 HTTP GET with an error code that might trick authentication and --fail
H A Dtest114522 # error code with native Windows curl.
37 # CURLE_URL_MALFORMAT is error code 3
/curl/lib/
H A Dopenldap.c607 if(code != LDAP_SUCCESS && code != LDAP_NO_RESULTS_RETURNED) in oldap_state_mechs_resp()
636 switch(code) { in oldap_state_mechs_resp()
687 int code) in oldap_state_bind_resp() argument
695 if(code != LDAP_SUCCESS) in oldap_state_bind_resp()
719 int code = LDAP_SUCCESS; in oldap_connecting() local
744 code = rc; in oldap_connecting()
747 data->info.httpcode = code; in oldap_connecting()
778 if(code != LDAP_SUCCESS) { in oldap_connecting()
977 int code; in oldap_recv() local
1010 data->info.httpcode = code; in oldap_recv()
[all …]
H A Dsocks_gssapi.c111 CURLcode code; in Curl_SOCKS5_gssapi_negotiate() local
208 FALSE, &code); in Curl_SOCKS5_gssapi_negotiate()
209 if(code || (4 != nwritten)) { in Curl_SOCKS5_gssapi_negotiate()
220 gss_send_token.length, FALSE, &code); in Curl_SOCKS5_gssapi_negotiate()
221 if(code || ((ssize_t)gss_send_token.length != nwritten)) { in Curl_SOCKS5_gssapi_negotiate()
416 &code); in Curl_SOCKS5_gssapi_negotiate()
417 if(code || (4 != nwritten)) { in Curl_SOCKS5_gssapi_negotiate()
427 &code); in Curl_SOCKS5_gssapi_negotiate()
428 if(code || ( 1 != nwritten)) { in Curl_SOCKS5_gssapi_negotiate()
437 gss_w_token.length, FALSE, &code); in Curl_SOCKS5_gssapi_negotiate()
[all …]
H A Dsocks_sspi.c71 CURLcode code; in Curl_SOCKS5_gssapi_negotiate() local
211 &code); in Curl_SOCKS5_gssapi_negotiate()
212 if(code || (4 != written)) { in Curl_SOCKS5_gssapi_negotiate()
226 sspi_send_token.cbBuffer, FALSE, &code); in Curl_SOCKS5_gssapi_negotiate()
227 if(code || (sspi_send_token.cbBuffer != (size_t)written)) { in Curl_SOCKS5_gssapi_negotiate()
482 &code); in Curl_SOCKS5_gssapi_negotiate()
483 if(code || (4 != written)) { in Curl_SOCKS5_gssapi_negotiate()
494 &code); in Curl_SOCKS5_gssapi_negotiate()
495 if(code || (1 != written)) { in Curl_SOCKS5_gssapi_negotiate()
504 sspi_send_token.cbBuffer, FALSE, &code); in Curl_SOCKS5_gssapi_negotiate()
[all …]
/curl/.github/scripts/
H A Dspellcheck.yaml26 - ':matches(code, pre)'
27 - 'code'
/curl/docs/cmdline-opts/
H A Dlibcurl.md6 Help: Generate libcurl code for this command line
20 libcurl-using C source code written to the file that does the equivalent of
H A Dfail.md21 Fail with error code 22 and with no response body output at all for HTTP
26 HTTP response code. This command line option prevents curl from outputting
30 To get both the error code and also save the content, use --fail-with-body
/curl/docs/libcurl/
H A Dcurl_share_strerror.md19 curl_share_strerror - return string describing error code
32 *CURLSHcode* error code passed in the argument *errornum*.

Completed in 39 milliseconds

123456789