15 # The stupid test server doesn't response anything at all until the full
16 # request has been sent, and then of course the full POST has already been
19 HTTP/1.1 407 no, tell me who you are first swsclose
20 Date: Thu, 09 Nov 2010 14:49:00 GMT
21 Server: test-server/fake
22 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
23 Proxy-Connection: close
29 Server: Microsoft-IIS/6.0
\r
30 Content-Type: text/html; charset=iso-8859-1
\r
36 HTTP/1.1 407 no, tell me who you are first swsclose
37 Date: Thu, 09 Nov 2010 14:49:00 GMT
38 Server: test-server/fake
39 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
40 Proxy-Connection: close
44 Server: Microsoft-IIS/6.0
\r
45 Content-Type: text/html; charset=iso-8859-1
\r
63 HTTP POST multipart without Expect: header using proxy anyauth (Digest)
66 -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
68 # We create this file before the command is invoked!
69 <file name="log/test258.txt">
76 # Verify data after the test has been "shot"
79 ^(User-Agent:|Content-Type: multipart/form-data;|------).*
82 POST http://remotehost:54321/we/want/258 HTTP/1.1
\r
83 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
84 Host: remotehost:54321
\r
86 Proxy-Connection: Keep-Alive
\r
88 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
\r
90 ------------------------------7c633d5c27ce
\r
91 Content-Disposition: form-data; name="name"
\r
94 ------------------------------7c633d5c27ce
\r
95 Content-Disposition: form-data; name="tool"
\r
98 ------------------------------7c633d5c27ce
\r
99 Content-Disposition: form-data; name="file"; filename="test258.txt"
\r
100 Content-Type: text/plain
\r
106 ------------------------------7c633d5c27ce--
\r
107 POST http://remotehost:54321/we/want/258 HTTP/1.1
\r
108 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
109 Proxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/258", response="2501654ca391f0b5c8c12a1da77e34cd"
\r
110 Host: remotehost:54321
\r
112 Proxy-Connection: Keep-Alive
\r
113 Content-Length: 409
\r
114 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
\r
116 ------------------------------7c633d5c27ce
\r
117 Content-Disposition: form-data; name="name"
\r
120 ------------------------------7c633d5c27ce
\r
121 Content-Disposition: form-data; name="tool"
\r
124 ------------------------------7c633d5c27ce
\r
125 Content-Disposition: form-data; name="file"; filename="test258.txt"
\r
126 Content-Type: text/plain
\r
132 ------------------------------7c633d5c27ce--
\r