15 HTTP/1.1 307 Redirect swsclose
16 Date: Thu, 29 Jul 2008 14:49:00 GMT
17 Server: test-server/fake
18 Location: data/10530002.txt?coolsite=yes
24 HTTP/1.1 200 OK swsclose
25 Date: Thu, 09 Nov 2010 14:49:00 GMT
26 Server: test-server/fake
34 HTTP/1.1 307 Redirect swsclose
35 Date: Thu, 29 Jul 2008 14:49:00 GMT
36 Server: test-server/fake
37 Location: data/10530002.txt?coolsite=yes
41 HTTP/1.1 200 OK swsclose
42 Date: Thu, 09 Nov 2010 14:49:00 GMT
43 Server: test-server/fake
58 HTTP RFC1867-type formposting from file with Location: following
61 http://%HOSTIP:%HTTPPORT/we/want/1053 -L -F name=daniel -F tool=curl -F file=@log/test1053.txt
63 # We create this file before the command is invoked!
64 <file name="log/test1053.txt">
71 # Verify data after the test has been "shot"
74 ^(User-Agent:|Content-Type: multipart/form-data;|------------).*
77 POST /we/want/1053 HTTP/1.1
78 User-Agent: curl/7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7a ipv6 zlib/1.1.4
79 Host: %HOSTIP:%HTTPPORT
82 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
84 ------------------------------9ef8d6205763
85 Content-Disposition: form-data; name="name"
88 ------------------------------9ef8d6205763
89 Content-Disposition: form-data; name="tool"
92 ------------------------------9ef8d6205763
93 Content-Disposition: form-data; name="file"; filename="test1053.txt"
94 Content-Type: text/plain
100 ------------------------------9ef8d6205763--
101 POST /we/want/data/10530002.txt?coolsite=yes HTTP/1.1
102 User-Agent: curl/7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7a ipv6 zlib/1.1.4
103 Host: %HOSTIP:%HTTPPORT
106 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
108 ------------------------------9ef8d6205763
109 Content-Disposition: form-data; name="name"
112 ------------------------------9ef8d6205763
113 Content-Disposition: form-data; name="tool"
116 ------------------------------9ef8d6205763
117 Content-Disposition: form-data; name="file"; filename="test1053.txt"
118 Content-Type: text/plain
124 ------------------------------9ef8d6205763--