13 # The stupid test server doesn't response anything at all until the full
14 # request has been sent, and then of course the full POST has already been
17 HTTP/1.1 407 no, tell me who you are first swsclose
18 Date: Thu, 09 Nov 2010 14:49:00 GMT
19 Server: test-server/fake
20 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
21 Proxy-Connection: close
27 Server: Microsoft-IIS/6.0
\r
28 Content-Type: text/html; charset=iso-8859-1
\r
34 HTTP/1.1 407 no, tell me who you are first swsclose
35 Date: Thu, 09 Nov 2010 14:49:00 GMT
36 Server: test-server/fake
37 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
38 Proxy-Connection: close
42 Server: Microsoft-IIS/6.0
\r
43 Content-Type: text/html; charset=iso-8859-1
\r
60 HTTP POST multipart without Expect: header using proxy anyauth (Digest)
63 -x http://%HOSTIP:%HTTPPORT http://remotehost:54321/we/want/258 -F name=daniel -F tool=curl -F file=@log/test258.txt -H "Expect:" -U uuuser:pppassword --proxy-anyauth
65 # We create this file before the command is invoked!
66 <file name="log/test258.txt">
73 # Verify data after the test has been "shot"
76 ^(User-Agent:|Content-Type: multipart/form-data;|------).*
79 POST http://remotehost:54321/we/want/258 HTTP/1.1
\r
80 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
81 Host: remotehost:54321
\r
84 Proxy-Connection: Keep-Alive
\r
86 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
\r
88 ------------------------------7c633d5c27ce
\r
89 Content-Disposition: form-data; name="name"
\r
92 ------------------------------7c633d5c27ce
\r
93 Content-Disposition: form-data; name="tool"
\r
96 ------------------------------7c633d5c27ce
\r
97 Content-Disposition: form-data; name="file"; filename="test258.txt"
\r
98 Content-Type: text/plain
\r
104 ------------------------------7c633d5c27ce--
\r
105 POST http://remotehost:54321/we/want/258 HTTP/1.1
\r
106 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
107 Proxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/258", response="2501654ca391f0b5c8c12a1da77e34cd"
\r
108 Host: remotehost:54321
\r
111 Proxy-Connection: Keep-Alive
\r
112 Content-Length: 409
\r
113 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
\r
115 ------------------------------7c633d5c27ce
\r
116 Content-Disposition: form-data; name="name"
\r
119 ------------------------------7c633d5c27ce
\r
120 Content-Disposition: form-data; name="tool"
\r
123 ------------------------------7c633d5c27ce
\r
124 Content-Disposition: form-data; name="file"; filename="test258.txt"
\r
125 Content-Type: text/plain
\r
131 ------------------------------7c633d5c27ce--
\r