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
18 Date: Thu, 09 Nov 2010 14:49:00 GMT
19 Server: test-server/fake
20 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
26 Server: Microsoft-IIS/6.0
\r
27 Content-Type: text/html; charset=iso-8859-1
\r
33 HTTP/1.1 407 no, tell me who you are first
34 Date: Thu, 09 Nov 2010 14:49:00 GMT
35 Server: test-server/fake
36 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
40 Server: Microsoft-IIS/6.0
\r
41 Content-Type: text/html; charset=iso-8859-1
\r
59 HTTP POST multipart with Expect: header using proxy anyauth (Digest)
62 -x http://%HOSTIP:%HTTPPORT http://remotehost:54321/we/want/259 -F name=daniel -F tool=curl -F file=@log/test259.txt -U uuuser:pppassword --proxy-anyauth
64 # We create this file before the command is invoked!
65 <file name="log/test259.txt">
72 # Verify data after the test has been "shot"
75 ^(User-Agent:|Content-Type: multipart/form-data;|------).*
78 POST http://remotehost:54321/we/want/259 HTTP/1.1
\r
79 Host: remotehost:54321
\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
82 Proxy-Connection: Keep-Alive
\r
84 Expect: 100-continue
\r
85 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
\r
87 ------------------------------7c633d5c27ce
\r
88 Content-Disposition: form-data; name="name"
\r
91 ------------------------------7c633d5c27ce
\r
92 Content-Disposition: form-data; name="tool"
\r
95 ------------------------------7c633d5c27ce
\r
96 Content-Disposition: form-data; name="file"; filename="test259.txt"
\r
97 Content-Type: text/plain
\r
103 ------------------------------7c633d5c27ce--
\r
104 POST http://remotehost:54321/we/want/259 HTTP/1.1
\r
105 Host: remotehost:54321
\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/259", response="b479994d13e60f3aa192a67c5892ddc5"
\r
109 Proxy-Connection: Keep-Alive
\r
110 Content-Length: 409
\r
111 Expect: 100-continue
\r
112 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
\r
114 ------------------------------7c633d5c27ce
\r
115 Content-Disposition: form-data; name="name"
\r
118 ------------------------------7c633d5c27ce
\r
119 Content-Disposition: form-data; name="tool"
\r
122 ------------------------------7c633d5c27ce
\r
123 Content-Disposition: form-data; name="file"; filename="test259.txt"
\r
124 Content-Type: text/plain
\r
130 ------------------------------7c633d5c27ce--
\r