]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test166
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test166
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 200 OK swsclose
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Server: test-server/fake
8 Content-Length: 10
9
10 blablabla
11 </data>
12 </reply>
13
14 # Client-side
15 <client>
16 <server>
17 http
18 </server>
19  <name>
20 HTTP formpost a file with spaces in name
21  </name>
22  <command>
23 http://%HOSTIP:%HTTPPORT/we/want/166 -F "name=@log/fie ld 166"
24 </command>
25 # We create this file before the command is invoked!
26 <file name="log/fie ld 166">
27 data inside the file
28 </file>
29 </client>
30
31 # Verify data after the test has been "shot"
32 <verify>
33 <strip>
34 ^(User-Agent:|Content-Type: multipart/form-data;|------------).*
35 </strip>
36 <protocol>
37 POST /we/want/166 HTTP/1.1\r
38 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3\r
39 Host: %HOSTIP:%HTTPPORT\r
40 Accept: */*\r
41 Content-Length: 223\r
42 Expect: 100-continue\r
43 Content-Type: multipart/form-data; boundary=----------------------------b0b3d6d23991\r
44 \r
45 ------------------------------b0b3d6d23991\r
46 Content-Disposition: form-data; name="name"; filename="fie ld 166"\r
47 Content-Type: application/octet-stream\r
48 \r
49 data inside the file
50 \r
51 ------------------------------b0b3d6d23991--\r
52 </protocol>
53 </verify>
54 </testcase>