14 # The stupid test server doesn't response anything at all until the full
15 # request has been sent, and then of course the full POST has already been
18 HTTP/1.1 407 no, tell me who you are first swsclose
19 Date: Thu, 09 Nov 2010 14:49:00 GMT
20 Server: test-server/fake
21 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
22 Proxy-Connection: close
28 Server: Microsoft-IIS/6.0
\r
29 Content-Type: text/html; charset=iso-8859-1
\r
35 HTTP/1.1 407 no, tell me who you are first swsclose
36 Date: Thu, 09 Nov 2010 14:49:00 GMT
37 Server: test-server/fake
38 Proxy-Authenticate: Digest realm="many secrets", nonce="911"
39 Proxy-Connection: close
43 Server: Microsoft-IIS/6.0
\r
44 Content-Type: text/html; charset=iso-8859-1
\r
61 HTTP POST multipart without Expect: header using proxy anyauth (Digest)
64 -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
66 # We create this file before the command is invoked!
67 <file name="log/test258.txt">
74 # Verify data after the test has been "shot"
77 ^(User-Agent:|Content-Type: multipart/form-data;|------).*
80 POST http://remotehost:54321/we/want/258 HTTP/1.1
\r
81 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 Host: remotehost:54321
\r
85 Proxy-Connection: Keep-Alive
\r
87 Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
\r
89 ------------------------------7c633d5c27ce
\r
90 Content-Disposition: form-data; name="name"
\r
93 ------------------------------7c633d5c27ce
\r
94 Content-Disposition: form-data; name="tool"
\r
97 ------------------------------7c633d5c27ce
\r
98 Content-Disposition: form-data; name="file"; filename="test258.txt"
\r
99 Content-Type: text/plain
\r
105 ------------------------------7c633d5c27ce--
\r
106 POST http://remotehost:54321/we/want/258 HTTP/1.1
\r
107 User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
108 Proxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/258", response="2501654ca391f0b5c8c12a1da77e34cd"
\r
109 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