11 # The stupid test server doesn't response anything at all until the full
12 # request has been sent, and then of course the full POST has already been
15 HTTP/1.1 407 no, tell me who you are first
16 Date: Thu, 09 Nov 2010 14:49:00 GMT
17 Server: test-server/fake
18 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
24 Server: Microsoft-IIS/6.0
\r
25 Content-Type: text/html; charset=iso-8859-1
\r
31 HTTP/1.1 407 no, tell me who you are first
32 Date: Thu, 09 Nov 2010 14:49:00 GMT
33 Server: test-server/fake
34 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
38 Server: Microsoft-IIS/6.0
\r
39 Content-Type: text/html; charset=iso-8859-1
\r
53 HTTP POST multipart with Expect: header using proxy anyauth (Digest)
56 -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
58 # We create this file before the command is invoked!
59 <file name="log/test259.txt">
66 # Verify data after the test has been "shot"
69 ^(User-Agent:|Content-Type: multipart/form-data;|------).*
72 POST http://remotehost:54321/we/want/259 HTTP/1.1
\r
73 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
74 Host: remotehost:54321
\r
78 Expect: 100-continue
\r
79 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
\r
81 ------------------------------7c633d5c27ce
\r
82 Content-Disposition: form-data; name="name"
\r
85 ------------------------------7c633d5c27ce
\r
86 Content-Disposition: form-data; name="tool"
\r
89 ------------------------------7c633d5c27ce
\r
90 Content-Disposition: form-data; name="file"; filename="test259.txt"
\r
91 Content-Type: text/plain
\r
97 ------------------------------7c633d5c27ce--
\r
98 POST http://remotehost:54321/we/want/259 HTTP/1.1
\r
99 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
100 Proxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/259", response="b479994d13e60f3aa192a67c5892ddc5"
\r
101 Host: remotehost:54321
\r
104 Content-Length: 409
\r
105 Expect: 100-continue
\r
106 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
\r
108 ------------------------------7c633d5c27ce
\r
109 Content-Disposition: form-data; name="name"
\r
112 ------------------------------7c633d5c27ce
\r
113 Content-Disposition: form-data; name="tool"
\r
116 ------------------------------7c633d5c27ce
\r
117 Content-Disposition: form-data; name="file"; filename="test259.txt"
\r
118 Content-Type: text/plain
\r
124 ------------------------------7c633d5c27ce--
\r