2009-03-03 21:25:19 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
2009-05-23 05:34:32 +08:00
|
|
|
HTTP CONNECT
|
2009-03-03 21:25:19 +08:00
|
|
|
HTTP proxy
|
|
|
|
HTTP proxy NTLM auth
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 We are fine and cool
|
|
|
|
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
|
|
|
Content-Length: 27
|
2016-11-29 23:22:35 +08:00
|
|
|
|
2009-03-03 21:25:19 +08:00
|
|
|
This is all fine and dandy
|
|
|
|
</data>
|
2013-03-16 00:28:32 +08:00
|
|
|
|
2016-11-29 23:22:35 +08:00
|
|
|
# This is the CONNECT response
|
2013-03-16 00:28:32 +08:00
|
|
|
<connect1001>
|
2009-03-03 21:25:19 +08:00
|
|
|
HTTP/1.1 200 We are fine and cool
|
|
|
|
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
2016-11-29 23:22:35 +08:00
|
|
|
|
2013-03-16 00:28:32 +08:00
|
|
|
</connect1001>
|
|
|
|
|
2009-03-03 21:25:19 +08:00
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 200 We are fine and cool
|
|
|
|
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
2016-11-29 23:22:35 +08:00
|
|
|
|
2009-03-03 21:25:19 +08:00
|
|
|
HTTP/1.1 200 We are fine and cool
|
|
|
|
Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
|
|
|
|
Content-Length: 27
|
2016-11-29 23:22:35 +08:00
|
|
|
|
2009-03-03 21:25:19 +08:00
|
|
|
This is all fine and dandy
|
|
|
|
</datacheck>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
https
|
|
|
|
</server>
|
|
|
|
<features>
|
2009-05-30 12:34:11 +08:00
|
|
|
NTLM
|
2019-12-30 04:23:25 +08:00
|
|
|
SSL
|
2013-12-29 04:22:22 +08:00
|
|
|
!SSPI
|
2020-05-27 17:51:34 +08:00
|
|
|
proxy
|
2009-03-03 21:25:19 +08:00
|
|
|
</features>
|
|
|
|
<name>
|
|
|
|
HTTP POST using CONNECT with --proxy-ntlm but no auth is required
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -d "dummy=value" -p
|
2009-03-03 21:25:19 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2019-03-12 00:15:34 +08:00
|
|
|
<protocol nonewline="yes">
|
2021-03-13 00:38:26 +08:00
|
|
|
CONNECT test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT HTTP/1.1
|
|
|
|
Host: test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT
|
2009-03-03 21:25:19 +08:00
|
|
|
Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2009-03-03 21:25:19 +08:00
|
|
|
|
2021-03-13 00:38:26 +08:00
|
|
|
POST /%TESTNUMBER HTTP/1.1
|
|
|
|
Host: test.a.galaxy.far.far.away.%TESTNUMBER:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2009-03-03 21:25:19 +08:00
|
|
|
Accept: */*
|
2019-03-12 00:15:34 +08:00
|
|
|
Content-Length: 11
|
2009-03-03 21:25:19 +08:00
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2019-03-12 00:15:34 +08:00
|
|
|
dummy=value
|
2009-03-03 21:25:19 +08:00
|
|
|
</protocol>
|
|
|
|
|
|
|
|
</verify>
|
|
|
|
</testcase>
|