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