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