Searched refs:ct (Results 1 – 5 of 5) sorted by relevance
/curl/docs/examples/ |
H A D | getinfo.c | 42 char *ct; in main() local 44 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct); in main() 46 if((CURLE_OK == res) && ct) in main() 47 printf("We received Content-Type: %s\n", ct); in main()
|
/curl/docs/libcurl/opts/ |
H A D | CURLINFO_CONTENT_TYPE.md | 26 CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_CONTENT_TYPE, char **ct); 36 The **ct** pointer is set to NULL or pointing to private memory. You MUST 59 char *ct = NULL; 60 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct); 61 if(!res && ct) { 62 printf("Content-Type: %s\n", ct);
|
/curl/tests/http/testenv/mod_curltest/ |
H A D | mod_curltest.c | 189 const char *ct; in curltest_echo_handler() local 254 ct = apr_table_get(r->headers_in, "content-type"); in curltest_echo_handler() 255 ap_set_content_type(r, ct ? ct : "application/octet-stream"); in curltest_echo_handler() 535 const char *ct; in curltest_put_handler() local 600 ct = apr_table_get(r->headers_in, "content-type"); in curltest_put_handler() 601 ap_set_content_type(r, ct ? ct : "text/plain"); in curltest_put_handler() 663 const char *ct; in curltest_1_1_required() local 690 ct = apr_table_get(r->headers_in, "content-type"); in curltest_1_1_required() 691 ap_set_content_type(r, ct ? ct : "text/plain"); in curltest_1_1_required()
|
/curl/tests/server/ |
H A D | tftpd.c | 423 int ct, int convert) in writeit() argument 425 bfs[current].counter = ct; /* set size of data to write */ in writeit() 431 return ct; /* this is a lie of course */ in writeit() 444 int ct; in write_behind() local 481 ct = count; in write_behind() 482 while(ct--) { /* loop over the buffer */ in write_behind()
|
/curl/docs/libcurl/ |
H A D | curl_easy_getinfo.md | 414 char *ct; 416 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &ct); 418 if((CURLE_OK == res) && ct) 419 printf("We received Content-Type: %s\n", ct);
|
Completed in 20 milliseconds