15 HTTP/1.1 307 Redirect swsclose
\r
16 Date: Thu, 29 Jul 2008 14:49:00 GMT
\r
17 Server: test-server/fake
\r
18 Location: data/10530002.txt?coolsite=yes
\r
24 HTTP/1.1 200 OK swsclose
\r
25 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
26 Server: test-server/fake
\r
34 HTTP/1.1 307 Redirect swsclose
\r
35 Date: Thu, 29 Jul 2008 14:49:00 GMT
\r
36 Server: test-server/fake
\r
37 Location: data/10530002.txt?coolsite=yes
\r
41 HTTP/1.1 200 OK swsclose
\r
42 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
43 Server: test-server/fake
\r
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
\r
78 User-Agent: curl/7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7a ipv6 zlib/1.1.4
\r
79 Host: %HOSTIP:%HTTPPORT
\r
82 Expect: 100-continue
\r
83 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
\r
85 ------------------------------9ef8d6205763
\r
86 Content-Disposition: form-data; name="name"
\r
89 ------------------------------9ef8d6205763
\r
90 Content-Disposition: form-data; name="tool"
\r
93 ------------------------------9ef8d6205763
\r
94 Content-Disposition: form-data; name="file"; filename="test1053.txt"
\r
95 Content-Type: text/plain
\r
101 ------------------------------9ef8d6205763--
\r
102 POST /we/want/data/10530002.txt?coolsite=yes HTTP/1.1
\r
103 User-Agent: curl/7.18.2 (i686-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7a ipv6 zlib/1.1.4
\r
104 Host: %HOSTIP:%HTTPPORT
\r
106 Content-Length: 410
\r
107 Expect: 100-continue
\r
108 Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
\r
110 ------------------------------9ef8d6205763
\r
111 Content-Disposition: form-data; name="name"
\r
114 ------------------------------9ef8d6205763
\r
115 Content-Disposition: form-data; name="tool"
\r
118 ------------------------------9ef8d6205763
\r
119 Content-Disposition: form-data; name="file"; filename="test1053.txt"
\r
120 Content-Type: text/plain
\r
126 ------------------------------9ef8d6205763--
\r