HomeSort by relevance Sort by last modified time
    Searched defs:curl (Results 76 - 100 of 158) sorted by null

1 2 34 5 6 7

  /external/curl/docs/examples/
ftpgetresp.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
24 #include <curl/curl.h>
43 CURL *curl; local
54 curl = curl_easy_init();
55 if(curl) {
57 curl_easy_setopt(curl, CURLOPT_URL, "ftp://ftp.example.com/");
58 curl_easy_setopt(curl, CURLOPT_WRITEDATA, ftpfile);
61 curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, write_response)
    [all...]
ftpsget.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
25 #include <curl/curl.h>
53 CURL *curl; local
62 curl = curl_easy_init();
63 if(curl) {
69 curl_easy_setopt(curl, CURLOPT_URL,
72 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
74 curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile)
    [all...]
href_extractor.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
33 #include <curl/curl.h>
56 CURL *curl; local
64 curl = curl_easy_init();
74 curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
75 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
76 curl_easy_setopt(curl, CURLOPT_WRITEDATA, hsp);
77 curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L)
    [all...]
httpput.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
61 CURL *curl; local
86 /* get a curl handle */
87 curl = curl_easy_init();
88 if(curl) {
90 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
93 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L)
    [all...]
multithread.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
43 "https://curl.haxx.se/",
51 CURL *curl; local
53 curl = curl_easy_init();
54 curl_easy_setopt(curl, CURLOPT_URL, url);
55 curl_easy_perform(curl); /* ignores error */
56 curl_easy_cleanup(curl);
    [all...]
post-callback.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
57 CURL *curl; local
74 /* get a curl handle */
75 curl = curl_easy_init();
76 if(curl) {
78 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/index.cgi");
81 curl_easy_setopt(curl, CURLOPT_POST, 1L)
    [all...]
sampleconv.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
43 #include <curl/curl.h>
92 CURL *curl; local
95 curl = curl_easy_init();
96 if(curl) {
97 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
100 curl_easy_setopt(curl, CURLOPT_CONV_FROM_NETWORK_FUNCTION,
102 curl_easy_setopt(curl, CURLOPT_CONV_TO_NETWORK_FUNCTION
    [all...]
sessioninfo.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
27 /* Note that this example currently requires curl to be linked against
32 #include <curl/curl.h>
35 static CURL *curl; variable
47 res = curl_easy_getinfo(curl, CURLINFO_TLS_SESSION, &info);
90 curl = curl_easy_init();
91 if(curl) {
92 curl_easy_setopt(curl, CURLOPT_URL, "https://www.example.com/")
    [all...]
sftpget.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
29 #include <curl/curl.h>
62 CURL *curl; local
71 curl = curl_easy_init();
72 if(curl) {
76 curl_easy_setopt(curl, CURLOPT_URL,
79 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, my_fwrite);
81 curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile)
    [all...]
anyauthput.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
51 #include <curl/curl.h>
79 static curlioerr my_ioctl(CURL *handle, curliocmd cmd, void *userp)
122 CURL *curl; local
143 /* get a curl handle */
144 curl = curl_easy_init();
145 if(curl) {
147 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback)
    [all...]
debug.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
27 #include <curl/curl.h>
83 int my_trace(CURL *handle, curl_infotype type,
123 CURL *curl; local
129 curl = curl_easy_init();
130 if(curl) {
131 curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
132 curl_easy_setopt(curl, CURLOPT_DEBUGDATA, &config)
    [all...]
externalsocket.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
30 #include <curl/curl.h>
86 CURL *curl; local
101 curl = curl_easy_init();
102 if(curl) {
107 curl_easy_setopt(curl, CURLOPT_URL, "http://99.99.99.99:9999");
130 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
133 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data)
    [all...]
ftpupload.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
25 #include <curl/curl.h>
68 CURL *curl; local
93 /* get a curl handle */
94 curl = curl_easy_init();
95 if(curl) {
101 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
104 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L)
    [all...]
htmltidy.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
33 #include <curl/curl.h>
35 /* curl write callback, to fill tidy's input buffer... */
77 CURL *curl; local
84 curl = curl_easy_init();
85 curl_easy_setopt(curl, CURLOPT_URL, argv[1]);
86 curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, curl_errbuf);
87 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L)
    [all...]
  /external/curl/tests/libtest/
lib1509.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
37 CURL *curl = NULL; local
42 easy_init(curl);
44 easy_setopt(curl, CURLOPT_PROXY, libtest_arg2); /* set in first.c */
46 easy_setopt(curl, CURLOPT_WRITEFUNCTION, *WriteOutput);
47 easy_setopt(curl, CURLOPT_HEADERFUNCTION, *WriteHeader);
49 easy_setopt(curl, CURLOPT_HEADER, 1L);
50 easy_setopt(curl, CURLOPT_VERBOSE, 1L);
51 easy_setopt(curl, CURLOPT_URL, URL)
    [all...]
lib1512.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
38 CURL *curl[NUM_HANDLES] = {NULL, NULL}; local
52 snprintf(dnsentry, sizeof(dnsentry), "server.example.curl:%s:%s",
60 easy_init(curl[i]);
63 "http://server.example.curl:%s/path/1512%04i",
66 easy_setopt(curl[i], CURLOPT_URL, target_url);
68 easy_setopt(curl[i], CURLOPT_VERBOSE, 1L);
70 easy_setopt(curl[i], CURLOPT_HEADER, 1L);
72 easy_setopt(curl[i], CURLOPT_DNS_USE_GLOBAL_CACHE, 1L)
    [all...]
lib1514.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
57 CURL *curl; local
64 easy_init(curl);
66 easy_setopt(curl, CURLOPT_URL, URL);
67 easy_setopt(curl, CURLOPT_POST, 1L);
69 easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
70 easy_setopt(curl, CURLOPT_READDATA, &pooh);
72 result = curl_easy_perform(curl);
76 curl_easy_cleanup(curl);
    [all...]
lib1517.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
56 CURL *curl; local
69 curl = curl_easy_init();
70 if(!curl) {
77 test_setopt(curl, CURLOPT_URL, URL);
80 test_setopt(curl, CURLOPT_POST, 1L);
84 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
88 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft);
91 test_setopt(curl, CURLOPT_READFUNCTION, read_callback)
    [all...]
lib1526.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
36 size_t amount = nmemb * size; /* Total bytes curl wants */
47 CURL *curl = NULL; local
57 if((curl = curl_easy_init()) == NULL) {
74 test_setopt(curl, CURLOPT_URL, URL);
75 test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
76 test_setopt(curl, CURLOPT_HTTPHEADER, hhl);
77 test_setopt(curl, CURLOPT_PROXYHEADER, phl);
78 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE)
    [all...]
lib1527.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
36 size_t amount = nmemb * size; /* Total bytes curl wants */
48 CURL *curl = NULL; local
58 if((curl = curl_easy_init()) == NULL) {
74 test_setopt(curl, CURLOPT_URL, URL);
75 test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
76 test_setopt(curl, CURLOPT_HTTPHEADER, hhl);
77 test_setopt(curl, CURLOPT_POST, 0L);
78 test_setopt(curl, CURLOPT_UPLOAD, 1L)
    [all...]
lib508.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
52 CURL *curl; local
65 if((curl = curl_easy_init()) == NULL) {
72 test_setopt(curl, CURLOPT_URL, URL);
75 test_setopt(curl, CURLOPT_POST, 1L);
79 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
83 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft);
86 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
89 test_setopt(curl, CURLOPT_READDATA, &pooh)
    [all...]
lib556.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
41 CURL *curl; local
48 if((curl = curl_easy_init()) == NULL) {
54 test_setopt(curl, CURLOPT_URL, URL);
55 test_setopt(curl, CURLOPT_CONNECT_ONLY, 1L);
56 test_setopt(curl, CURLOPT_VERBOSE, 1L);
58 res = curl_easy_perform(curl);
75 res = curl_easy_send(curl, request, strlen(request), &iolen);
83 res = curl_easy_recv(curl, buf, 1024, &iolen)
    [all...]
lib568.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
45 CURL *curl; local
58 if((curl = curl_easy_init()) == NULL) {
64 test_setopt(curl, CURLOPT_HEADERDATA, stdout);
65 test_setopt(curl, CURLOPT_WRITEDATA, stdout);
67 test_setopt(curl, CURLOPT_URL, URL);
73 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
87 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_ANNOUNCE);
89 test_setopt(curl, CURLOPT_READDATA, sdpf)
    [all...]
lib569.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
37 CURL *curl; local
56 if((curl = curl_easy_init()) == NULL) {
63 test_setopt(curl, CURLOPT_HEADERDATA, stdout);
64 test_setopt(curl, CURLOPT_WRITEDATA, stdout);
65 test_setopt(curl, CURLOPT_VERBOSE, 1L);
67 test_setopt(curl, CURLOPT_URL, URL);
69 test_setopt(curl, CURLOPT_RTSP_REQUEST, CURL_RTSPREQ_SETUP);
70 res = curl_easy_perform(curl);
    [all...]
lib572.c 12 * are also available at https://curl.haxx.se/docs/copyright.html.
45 CURL *curl; local
58 if((curl = curl_easy_init()) == NULL) {
65 test_setopt(curl, CURLOPT_HEADERDATA, stdout);
66 test_setopt(curl, CURLOPT_WRITEDATA, stdout);
67 test_setopt(curl, CURLOPT_VERBOSE, 1L);
69 test_setopt(curl, CURLOPT_URL, URL);
76 test_setopt(curl, CURLOPT_RTSP_STREAM_URI, stream_uri);
80 test_setopt(curl, CURLOPT_RTSP_TRANSPORT, "Planes/Trains/Automobiles")
    [all...]

Completed in 216 milliseconds

1 2 34 5 6 7