Debian Codegraph @

curl/tests/data/test173

raw
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 200 OK swsclose
5 Date: Thu, 09 Nov 2010 14:49:00 GMT
6 Server: test-server/fake
7
8 blablabla
9
10 </data>
11 </reply>
12
13 # Client-side
14 <client>
15 <server>
16 http
17 </server>
18 <name>
19 HTTP RFC1867-formpost a file from stdin with "faked" filename
20 </name>
21 <command>
22 http://%HOSTIP:%HTTPPORT/we/want/173 -F field1=contents1 -F "fileupload=@-;filename=/dev/null"
23 </command>
24
25 <stdin>
26 line1
27 line2
28 line3
29 line4
30 line5
31 line6
32 line7
33 line8
34 </stdin>
35 </client>
36
37 # Verify data after the test has been "shot"
38 <verify>
39 <strip>
40 ^(User-Agent:|Content-Type: multipart/form-data;|------------).*
41 </strip>
42 <protocol>
43 POST /we/want/173 HTTP/1.1
44 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
45 Host: 127.0.0.1:%HTTPPORT
46 Accept: */*
47 Content-Length: 359
48 Expect: 100-continue
49 Content-Type: multipart/form-data; boundary=----------------------------5dbea401cd8c
50
51 ------------------------------5dbea401cd8c
52 Content-Disposition: form-data; name="field1"
53
54 contents1
55 ------------------------------5dbea401cd8c
56 Content-Disposition: form-data; name="fileupload"; filename="/dev/null"
57 Content-Type: application/octet-stream
58
59 line1
60 line2
61 line3
62 line4
63 line5
64 line6
65 line7
66 line8
67
68 ------------------------------5dbea401cd8c--
69 </protocol>
70 </verify>