15 REPLY LIST +OK 1407 100
29 pop3://%HOSTIP:%POP3PORT/1407 -l -u user:secret --libcurl log/test1407.c
34 # Verify data after the test has been "shot"
42 <file name="log/test1407.c" mode="text">
43 /********* Sample code generated by the curl command line tool **********
44 * All curl_easy_setopt() options are documented at:
45 * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
46 ************************************************************************/
47 #include <curl/curl.h>
49 int main(int argc, char *argv[])
54 hnd = curl_easy_init();
55 curl_easy_setopt(hnd, CURLOPT_URL, "pop3://%HOSTIP:%POP3PORT/1407");
56 curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
57 curl_easy_setopt(hnd, CURLOPT_DIRLISTONLY, 1L);
58 curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret");
59 curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
60 curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
61 curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
62 curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
64 /* Here is a list of options the curl code used that cannot get generated
65 as source easily. You may select to either not use them or implement
68 CURLOPT_WRITEDATA set to a objectpointer
69 CURLOPT_WRITEFUNCTION set to a functionpointer
70 CURLOPT_READDATA set to a objectpointer
71 CURLOPT_READFUNCTION set to a functionpointer
72 CURLOPT_SEEKDATA set to a objectpointer
73 CURLOPT_SEEKFUNCTION set to a functionpointer
74 CURLOPT_ERRORBUFFER set to a objectpointer
75 CURLOPT_STDERR set to a objectpointer
76 CURLOPT_DEBUGFUNCTION set to a functionpointer
77 CURLOPT_DEBUGDATA set to a objectpointer
78 CURLOPT_HEADERFUNCTION set to a functionpointer
79 CURLOPT_HEADERDATA set to a objectpointer
83 ret = curl_easy_perform(hnd);
85 curl_easy_cleanup(hnd);
90 /**** End of sample code ****/
93 # curl's default user-agent varies with version, libraries etc.
94 s/(USERAGENT, \")[^\"]+/${1}stripped/
95 # CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
97 $_ = '' if /CURLOPT_SSL_VERIFYPEER/
98 $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/