]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test1407
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test1407
1 <testcase>
2 # Based on test808
3 <info>
4 <keywords>
5 POP3
6 LIST
7 --libcurl
8 </keywords>
9 </info>
10
11 #
12 # Server-side
13 <reply>
14 <servercmd>
15 REPLY LIST +OK 1407 100\r\n.
16 </servercmd>
17 </reply>
18
19 #
20 # Client-side
21 <client>
22 <server>
23 pop3
24 </server>
25  <name>
26 POP3 LIST one message
27  </name>
28  <command>
29 pop3://%HOSTIP:%POP3PORT/1407 -l -u user:secret --libcurl log/test1407.c
30 </command>
31 </client>
32
33 #
34 # Verify data after the test has been "shot"
35 <verify>
36 <protocol>
37 CAPA\r
38 USER user\r
39 PASS secret\r
40 LIST 1407\r
41 QUIT\r
42 </protocol>
43 <file name="log/test1407.c" mode="text">
44 /********* Sample code generated by the curl command line tool **********
45  * All curl_easy_setopt() options are documented at:
46  * http://curl.haxx.se/libcurl/c/curl_easy_setopt.html
47  ************************************************************************/
48 #include <curl/curl.h>
49
50 int main(int argc, char *argv[])
51 {
52   CURLcode ret;
53   CURL *hnd;
54
55   hnd = curl_easy_init();
56   curl_easy_setopt(hnd, CURLOPT_URL, "pop3://%HOSTIP:%POP3PORT/1407");
57   curl_easy_setopt(hnd, CURLOPT_HEADER, 1L);
58   curl_easy_setopt(hnd, CURLOPT_DIRLISTONLY, 1L);
59   curl_easy_setopt(hnd, CURLOPT_USERPWD, "user:secret");
60   curl_easy_setopt(hnd, CURLOPT_USERAGENT, "stripped");
61   curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
62   curl_easy_setopt(hnd, CURLOPT_VERBOSE, 1L);
63   curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
64
65   /* Here is a list of options the curl code used that cannot get generated
66      as source easily. You may select to either not use them or implement
67      them yourself.
68
69   CURLOPT_WRITEDATA set to a objectpointer
70   CURLOPT_WRITEFUNCTION set to a functionpointer
71   CURLOPT_READDATA set to a objectpointer
72   CURLOPT_READFUNCTION set to a functionpointer
73   CURLOPT_SEEKDATA set to a objectpointer
74   CURLOPT_SEEKFUNCTION set to a functionpointer
75   CURLOPT_ERRORBUFFER set to a objectpointer
76   CURLOPT_STDERR set to a objectpointer
77   CURLOPT_DEBUGFUNCTION set to a functionpointer
78   CURLOPT_DEBUGDATA set to a objectpointer
79   CURLOPT_HEADERFUNCTION set to a functionpointer
80   CURLOPT_HEADERDATA set to a objectpointer
81
82   */
83
84   ret = curl_easy_perform(hnd);
85
86   curl_easy_cleanup(hnd);
87   hnd = NULL;
88
89   return (int)ret;
90 }
91 /**** End of sample code ****/
92 </file>
93 <stripfile>
94 # curl's default user-agent varies with version, libraries etc.
95 s/(USERAGENT, \")[^\"]+/${1}stripped/
96 # CURLOPT_SSL_VERIFYPEER and SSH_KNOWNHOSTS vary with configurations - just
97 # ignore them
98 $_ = '' if /CURLOPT_SSL_VERIFYPEER/
99 $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
100 </stripfile>
101 </verify>
102 </testcase>