Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test173
blob841c228afdeb6ae3bbe3a37651266098ccd1f2a9
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: 11
10 blablabla
12 </data>
13 </reply>
15 # Client-side
16 <client>
17 <server>
18 http
19 </server>
20  <name>
21 HTTP RFC1867-formpost a file from stdin with "faked" filename
22  </name>
23  <command>
24 http://%HOSTIP:%HTTPPORT/we/want/173 -F field1=contents1 -F "fileupload=@-;filename=/dev/null"
25 </command>
27 <stdin>
28 line1
29 line2
30 line3
31 line4
32 line5
33 line6
34 line7
35 line8
36 </stdin>
37 </client>
39 # Verify data after the test has been "shot"
40 <verify>
41 <strip>
42 ^(User-Agent:|Content-Type: multipart/form-data;|------------).*
43 </strip>
44 <protocol>
45 POST /we/want/173 HTTP/1.1
46 User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6
47 Host: %HOSTIP:%HTTPPORT
48 Accept: */*
49 Content-Length: 359
50 Expect: 100-continue
51 Content-Type: multipart/form-data; boundary=----------------------------5dbea401cd8c
53 ------------------------------5dbea401cd8c
54 Content-Disposition: form-data; name="field1"
56 contents1
57 ------------------------------5dbea401cd8c
58 Content-Disposition: form-data; name="fileupload"; filename="/dev/null"
59 Content-Type: application/octet-stream
61 line1
62 line2
63 line3
64 line4
65 line5
66 line6
67 line7
68 line8
70 ------------------------------5dbea401cd8c--
71 </protocol>
72 </verify>
73 </testcase>