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<data1001>
22HTTP/1.1 200 We are fine and cool
23Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
24Content-Length: 27
25
26This is all fine and dandy
27</data1001>
28<datacheck>
29HTTP/1.1 200 We are fine and cool
30Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
31Content-Length: 27
32
33HTTP/1.1 200 We are fine and cool
34Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2
35Content-Length: 27
36
37This is all fine and dandy
38</datacheck>
39</reply>
40
41# Client-side
42<client>
43<server>
44https
45</server>
46<features>
47NTLM
48</features>
49 <name>
50HTTP POST using CONNECT with --proxy-ntlm but no auth is required
51 </name>
52 <command>
53http://test.a.galaxy.far.far.away:1097/1097 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -d "dummy=value" -p
54</command>
55</client>
56
57# Verify data after the test has been "shot"
58<verify>
59<strip>
60^User-Agent: curl/.*
61</strip>
62<protocol>
63CONNECT test.a.galaxy.far.far.away:1097 HTTP/1.1
64Host: test.a.galaxy.far.far.away:1097
65Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
66User-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
67Proxy-Connection: Keep-Alive
68
69POST /1097 HTTP/1.1
70User-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
71Host: test.a.galaxy.far.far.away:1097
72Accept: */*
73Content-Length: 0
74Content-Type: application/x-www-form-urlencoded
75
76</protocol>
77
78</verify>
79</testcase>
80