1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6HTTP CONNECT
7HTTP proxy
8HTTP proxy NTLM auth
9</keywords>
10</info>
11
12# Server-side
13<reply>
14<data>
15HTTP/1.1 200 We are fine and cool
16Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
17Content-Length: 27
18
19This is all fine and dandy
20</data>
21
22<connect1001>
23HTTP/1.1 200 We are fine and cool
24Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
25Content-Length: 27
26
27This is all fine and dandy
28</connect1001>
29
30<datacheck>
31HTTP/1.1 200 We are fine and cool
32Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
33Content-Length: 27
34
35HTTP/1.1 200 We are fine and cool
36Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
37Content-Length: 27
38
39This is all fine and dandy
40</datacheck>
41</reply>
42
43# Client-side
44<client>
45<server>
46https
47</server>
48<features>
49NTLM
50!SSPI
51</features>
52 <name>
53HTTP POST using CONNECT with --proxy-ntlm but no auth is required
54 </name>
55 <command>
56http://test.a.galaxy.far.far.away.1097:%HTTPPORT/1097 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -d "dummy=value" -p
57</command>
58</client>
59
60# Verify data after the test has been "shot"
61<verify>
62<strip>
63^User-Agent: curl/.*
64</strip>
65<protocol>
66CONNECT test.a.galaxy.far.far.away.1097:%HTTPPORT HTTP/1.1
67Host: test.a.galaxy.far.far.away.1097:%HTTPPORT
68Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
69User-Agent: curl/7.19.5-CVS (i686-pc-linux-gnu) libcurl/7.19.5-CVS OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.6.1-CVS libidn/1.12 libssh2/1.0.1_CVS
70Proxy-Connection: Keep-Alive
71
72POST /1097 HTTP/1.1
73User-Agent: curl/7.19.5-CVS (i686-pc-linux-gnu) libcurl/7.19.5-CVS OpenSSL/0.9.8g zlib/1.2.3.3 c-ares/1.6.1-CVS libidn/1.12 libssh2/1.0.1_CVS
74Host: test.a.galaxy.far.far.away.1097:%HTTPPORT
75Accept: */*
76Content-Length: 0
77Content-Type: application/x-www-form-urlencoded
78
79</protocol>
80
81</verify>
82</testcase>
83