15 HTTP/1.0 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.0 200 OK swsclose
25 Date: Thu, 09 Nov 2010 14:49:00 GMT
26 Server: test-server/fake
32 HTTP/1.0 307 Redirect swsclose
33 Date: Thu, 29 Jul 2008 14:49:00 GMT
34 Server: test-server/fake
35 Location: data/10530002.txt?coolsite=yes
39 HTTP/1.0 200 OK swsclose
40 Date: Thu, 09 Nov 2010 14:49:00 GMT
41 Server: test-server/fake
54 HTTP RFC1867-type formposting from file with Location: following
57 http://%HOSTIP:%HTTPPORT/we/want/1053 -L -F name=daniel -F tool=curl -F file=@log/test1053.txt
59 # We create this file before the command is invoked!
60 <file name="log/test1053.txt">
67 # Verify data after the test has been "shot"
70 ^(User-Agent:|Content-Type: multipart/form-data;|------------).*
73 POST /we/want/1053 HTTP/1.1
74 User-Agent: curl/7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7a ipv6 zlib/1.1.4
75 Host: %HOSTIP:%HTTPPORT
79 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
81 ------------------------------9ef8d6205763
82 Content-Disposition: form-data; name="name"
85 ------------------------------9ef8d6205763
86 Content-Disposition: form-data; name="tool"
89 ------------------------------9ef8d6205763
90 Content-Disposition: form-data; name="file"; filename="test1053.txt"
91 Content-Type: text/plain
97 ------------------------------9ef8d6205763--
98 POST /we/want/data/10530002.txt?coolsite=yes HTTP/1.1
99 User-Agent: curl/7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7a ipv6 zlib/1.1.4
100 Host: %HOSTIP:%HTTPPORT
104 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
106 ------------------------------9ef8d6205763
107 Content-Disposition: form-data; name="name"
110 ------------------------------9ef8d6205763
111 Content-Disposition: form-data; name="tool"
114 ------------------------------9ef8d6205763
115 Content-Disposition: form-data; name="file"; filename="test1053.txt"
116 Content-Type: text/plain
122 ------------------------------9ef8d6205763--