2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2005-05-06 19:22:33 -04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP FORMPOST
|
|
|
|
HTTP replaced headers
|
|
|
|
HTTP proxy
|
|
|
|
HTTP proxy Digest auth
|
2008-06-21 13:56:48 -04:00
|
|
|
--proxy-anyauth
|
2005-05-06 19:22:33 -04:00
|
|
|
</keywords>
|
2007-10-11 21:44:22 -04:00
|
|
|
|
2005-05-06 19:22:33 -04:00
|
|
|
</info>
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
# The stupid test server doesn't response anything at all until the full
|
|
|
|
# request has been sent, and then of course the full POST has already been
|
|
|
|
# sent!
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 407 no, tell me who you are first swsclose
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Proxy-Authenticate: Digest realm="many secrets", nonce="911"
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: close
|
2005-05-06 19:22:33 -04:00
|
|
|
Content-Length: 0
|
|
|
|
|
|
|
|
</data>
|
|
|
|
<data1000>
|
|
|
|
HTTP/1.1 200 A OK
|
|
|
|
Server: Microsoft-IIS/6.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 3
|
|
|
|
|
|
|
|
ok
|
|
|
|
</data1000>
|
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 407 no, tell me who you are first swsclose
|
|
|
|
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Proxy-Authenticate: Digest realm="many secrets", nonce="911"
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: close
|
2005-05-06 19:22:33 -04:00
|
|
|
Content-Length: 0
|
|
|
|
|
|
|
|
HTTP/1.1 200 A OK
|
|
|
|
Server: Microsoft-IIS/6.0
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Content-Length: 3
|
|
|
|
|
|
|
|
ok
|
|
|
|
</datacheck>
|
|
|
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2007-03-09 18:39:42 -05:00
|
|
|
<features>
|
2014-11-06 14:57:16 -05:00
|
|
|
!SSPI
|
2007-03-09 18:39:42 -05:00
|
|
|
crypto
|
|
|
|
</features>
|
2005-05-06 19:22:33 -04:00
|
|
|
<name>
|
|
|
|
HTTP POST multipart without Expect: header using proxy anyauth (Digest)
|
|
|
|
</name>
|
|
|
|
<command>
|
2007-09-18 16:41:20 -04:00
|
|
|
-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
|
2005-05-06 19:22:33 -04:00
|
|
|
</command>
|
|
|
|
# We create this file before the command is invoked!
|
|
|
|
<file name="log/test258.txt">
|
|
|
|
foo-
|
|
|
|
This is a moo-
|
|
|
|
bar
|
|
|
|
</file>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^(User-Agent:|Content-Type: multipart/form-data;|------).*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
POST http://remotehost:54321/we/want/258 HTTP/1.1
|
|
|
|
Host: remotehost:54321
|
2015-03-11 19:50:46 -04:00
|
|
|
User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
|
2005-05-06 19:22:33 -04:00
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2005-05-06 19:22:33 -04:00
|
|
|
Content-Length: 409
|
|
|
|
Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
|
|
|
|
|
|
|
|
------------------------------7c633d5c27ce
|
|
|
|
Content-Disposition: form-data; name="name"
|
|
|
|
|
|
|
|
daniel
|
|
|
|
------------------------------7c633d5c27ce
|
|
|
|
Content-Disposition: form-data; name="tool"
|
|
|
|
|
|
|
|
curl
|
|
|
|
------------------------------7c633d5c27ce
|
|
|
|
Content-Disposition: form-data; name="file"; filename="test258.txt"
|
|
|
|
Content-Type: text/plain
|
|
|
|
|
|
|
|
foo-
|
|
|
|
This is a moo-
|
|
|
|
bar
|
|
|
|
|
|
|
|
------------------------------7c633d5c27ce--
|
|
|
|
POST http://remotehost:54321/we/want/258 HTTP/1.1
|
2015-03-11 19:50:46 -04:00
|
|
|
Host: remotehost:54321
|
2005-05-06 19:22:33 -04:00
|
|
|
User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
|
|
|
|
Proxy-Authorization: Digest username="uuuser", realm="many secrets", nonce="911", uri="/we/want/258", response="2501654ca391f0b5c8c12a1da77e34cd"
|
|
|
|
Accept: */*
|
2016-08-16 02:36:04 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2005-05-06 19:22:33 -04:00
|
|
|
Content-Length: 409
|
|
|
|
Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
|
|
|
|
|
|
|
|
------------------------------7c633d5c27ce
|
|
|
|
Content-Disposition: form-data; name="name"
|
|
|
|
|
|
|
|
daniel
|
|
|
|
------------------------------7c633d5c27ce
|
|
|
|
Content-Disposition: form-data; name="tool"
|
|
|
|
|
|
|
|
curl
|
|
|
|
------------------------------7c633d5c27ce
|
|
|
|
Content-Disposition: form-data; name="file"; filename="test258.txt"
|
|
|
|
Content-Type: text/plain
|
|
|
|
|
|
|
|
foo-
|
|
|
|
This is a moo-
|
|
|
|
bar
|
|
|
|
|
|
|
|
------------------------------7c633d5c27ce--
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|