Git init
[external/curl.git] / tests / data / test1097
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 HTTP CONNECT
7 HTTP proxy
8 HTTP proxy NTLM auth
9 </keywords>
10 </info>
11
12 # Server-side
13 <reply>
14 <data>
15 HTTP/1.1 200 We are fine and cool\r
16 Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2\r
17 Content-Length: 27\r
18
19 This is all fine and dandy
20 </data>
21 <data1001>
22 HTTP/1.1 200 We are fine and cool\r
23 Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2\r
24 Content-Length: 27\r
25
26 This is all fine and dandy
27 </data1001>
28 <datacheck>
29 HTTP/1.1 200 We are fine and cool\r
30 Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2\r
31 Content-Length: 27\r
32
33 HTTP/1.1 200 We are fine and cool\r
34 Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2\r
35 Content-Length: 27\r
36
37 This is all fine and dandy
38 </datacheck>
39 </reply>
40
41 # Client-side
42 <client>
43 <server>
44 https
45 </server>
46 <features>
47 NTLM
48 </features>
49  <name>
50 HTTP POST using CONNECT with --proxy-ntlm but no auth is required
51  </name>
52  <command>
53 http://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>
63 CONNECT test.a.galaxy.far.far.away:1097 HTTP/1.1\r
64 Host: test.a.galaxy.far.far.away:1097\r
65 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
66 User-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\r
67 Proxy-Connection: Keep-Alive\r
68 \r
69 POST /1097 HTTP/1.1\r
70 User-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\r
71 Host: test.a.galaxy.far.far.away:1097\r
72 Accept: */*\r
73 Content-Length: 0\r
74 Content-Type: application/x-www-form-urlencoded\r
75 \r
76 </protocol>
77
78 </verify>
79 </testcase>