12
# The stupid test server doesn't response anything at all until the full
13
# request has been sent, and then of course the full POST has already been
16
HTTP/1.1 407 no, tell me who you are first swsclose
17
Date: Thu, 09 Nov 2010 14:49:00 GMT
18
Server: test-server/fake
19
Proxy-Authenticate: Digest realm="many secrets", nonce="911"
20
Proxy-Connection: close
26
Server: Microsoft-IIS/6.0
27
Content-Type: text/html; charset=iso-8859-1
33
HTTP/1.1 407 no, tell me who you are first swsclose
34
Date: Thu, 09 Nov 2010 14:49:00 GMT
35
Server: test-server/fake
36
Proxy-Authenticate: Digest realm="many secrets", nonce="911"
37
Proxy-Connection: close
41
Server: Microsoft-IIS/6.0
42
Content-Type: text/html; charset=iso-8859-1
56
HTTP POST multipart without Expect: header using proxy anyauth (Digest)
59
-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
61
# We create this file before the command is invoked!
62
<file name="log/test258.txt">
69
# Verify data after the test has been "shot"
72
^(User-Agent:|Content-Type: multipart/form-data;|------).*
75
POST http://remotehost:54321/we/want/258 HTTP/1.1
76
User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
77
Host: remotehost:54321
80
Proxy-Connection: Keep-Alive
82
Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
84
------------------------------7c633d5c27ce
85
Content-Disposition: form-data; name="name"
88
------------------------------7c633d5c27ce
89
Content-Disposition: form-data; name="tool"
92
------------------------------7c633d5c27ce
93
Content-Disposition: form-data; name="file"; filename="test258.txt"
94
Content-Type: text/plain
100
------------------------------7c633d5c27ce--
101
POST http://remotehost:54321/we/want/258 HTTP/1.1
102
User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
103
Proxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/258", response="2501654ca391f0b5c8c12a1da77e34cd"
104
Host: remotehost:54321
107
Proxy-Connection: Keep-Alive
109
Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
111
------------------------------7c633d5c27ce
112
Content-Disposition: form-data; name="name"
115
------------------------------7c633d5c27ce
116
Content-Disposition: form-data; name="tool"
119
------------------------------7c633d5c27ce
120
Content-Disposition: form-data; name="file"; filename="test258.txt"
121
Content-Type: text/plain
127
------------------------------7c633d5c27ce--