Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 209) 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 Dnotexists.pl26 my $code = 0;
35 $code = 1;
38 exit $code;
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 fire() local
152 code = curl_easy_perform(curl); in fire()
153 if(code) { in fire()
156 tdata->url, i, (int)code); in 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(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 fire() local
118 code = curl_easy_perform(curl); in fire()
119 if(code != CURLE_OK) { in fire()
122 tdata->url, i, (int)code); in 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.md17 CURLINFO_HTTP_CONNECTCODE - get the CONNECT response code
29 Pass a pointer to a long to receive the last received HTTP proxy response code
30 to a CONNECT request. The returned value is zero if no such response code was
47 long code;
48 res = curl_easy_getinfo(curl, CURLINFO_HTTP_CONNECTCODE, &code);
49 if(!res && code)
50 printf("The CONNECT response code: %03ld\n", code);
H A DCURLINFO_PROXY_ERROR.md68 Pass a pointer to a long to receive a detailed error code when the most recent
69 transfer returned a **CURLE_PROXY** error. That error code matches the
72 The error code is zero (**CURLPX_OK**) if no response code was available.
H A DCURLINFO_RESPONSE_CODE.md20 CURLINFO_RESPONSE_CODE - get the last response code
33 (OpenLDAP only) response code. This option was previously known as
35 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>
77 OBSOLETE29 <obsolete error code>
80 OBSOLETE32 <obsolete error code>
88 OBSOLETE40 <obsolete error code>
92 OBSOLETE44 <obsolete error code>
94 OBSOLETE46 <obsolete error code>
[all …]
/curl/src/
H A Dtool_vms.c93 void vms_special_exit(int code, int vms_show) in vms_special_exit() argument
100 decc$__posix_exit(code); in vms_special_exit()
104 if(code > CURL_LAST) { /* If CURL_LAST exceeded then */ in vms_special_exit()
108 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 Dtest143033 HTTP GET with negative response code
51 # Due to invalid HTTP response code
/curl/lib/
H A Dopenldap.c621 if(code != LDAP_SUCCESS && code != LDAP_NO_RESULTS_RETURNED) in oldap_state_mechs_resp()
650 switch(code) { in oldap_state_mechs_resp()
701 int code) in oldap_state_bind_resp() argument
709 if(code != LDAP_SUCCESS) in oldap_state_bind_resp()
733 int code = LDAP_SUCCESS; in oldap_connecting() local
758 code = rc; in oldap_connecting()
761 data->info.httpcode = code; in oldap_connecting()
792 if(code != LDAP_SUCCESS) { in oldap_connecting()
991 int code; in oldap_recv() local
1024 data->info.httpcode = code; in oldap_recv()
[all …]
H A Dsocks_gssapi.c111 CURLcode code; in Curl_SOCKS5_gssapi_negotiate() local
207 nwritten = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 4, &code); in Curl_SOCKS5_gssapi_negotiate()
208 if(code || (4 != nwritten)) { in Curl_SOCKS5_gssapi_negotiate()
219 gss_send_token.length, &code); in Curl_SOCKS5_gssapi_negotiate()
220 if(code || ((ssize_t)gss_send_token.length != nwritten)) { in Curl_SOCKS5_gssapi_negotiate()
413 nwritten = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 4, &code); in Curl_SOCKS5_gssapi_negotiate()
414 if(code || (4 != nwritten)) { in Curl_SOCKS5_gssapi_negotiate()
423 nwritten = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 1, &code); in Curl_SOCKS5_gssapi_negotiate()
424 if(code || ( 1 != nwritten)) { in Curl_SOCKS5_gssapi_negotiate()
433 gss_w_token.length, &code); in Curl_SOCKS5_gssapi_negotiate()
[all …]
H A Dsocks_sspi.c71 CURLcode code; in Curl_SOCKS5_gssapi_negotiate() local
210 written = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 4, &code); in Curl_SOCKS5_gssapi_negotiate()
211 if(code || (4 != written)) { in Curl_SOCKS5_gssapi_negotiate()
225 sspi_send_token.cbBuffer, &code); in Curl_SOCKS5_gssapi_negotiate()
226 if(code || (sspi_send_token.cbBuffer != (size_t)written)) { in Curl_SOCKS5_gssapi_negotiate()
479 written = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 4, &code); in Curl_SOCKS5_gssapi_negotiate()
480 if(code || (4 != written)) { in Curl_SOCKS5_gssapi_negotiate()
490 written = Curl_conn_cf_send(cf->next, data, (char *)socksreq, 1, &code); in Curl_SOCKS5_gssapi_negotiate()
491 if(code || (1 != written)) { in Curl_SOCKS5_gssapi_negotiate()
500 sspi_send_token.cbBuffer, &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
/curl/docs/libcurl/
H A Dcurl_multi_strerror.md18 curl_multi_strerror - return string describing error code
30 This function returns a string describing the *CURLMcode* error code

Completed in 43 milliseconds

123456789