Revert "Imported Upstream version 7.53.1"
[platform/upstream/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
22 <connect1001>
23 HTTP/1.1 200 We are fine and cool\r
24 Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2\r
25 Content-Length: 27\r
26
27 This is all fine and dandy
28 </connect1001>
29
30 <datacheck>
31 HTTP/1.1 200 We are fine and cool\r
32 Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2\r
33 Content-Length: 27\r
34
35 HTTP/1.1 200 We are fine and cool\r
36 Server: Apache/1.3.27 (Dorw1n) PHP/44.1.2\r
37 Content-Length: 27\r
38
39 This is all fine and dandy
40 </datacheck>
41 </reply>
42
43 # Client-side
44 <client>
45 <server>
46 https
47 </server>
48 <features>
49 NTLM
50 !SSPI
51 </features>
52  <name>
53 HTTP POST using CONNECT with --proxy-ntlm but no auth is required
54  </name>
55  <command>
56 http://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>
66 CONNECT test.a.galaxy.far.far.away.1097:%HTTPPORT HTTP/1.1\r
67 Host: test.a.galaxy.far.far.away.1097:%HTTPPORT\r
68 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
69 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
70 Proxy-Connection: Keep-Alive\r
71 \r
72 POST /1097 HTTP/1.1\r
73 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
74 Host: test.a.galaxy.far.far.away.1097:%HTTPPORT\r
75 Accept: */*\r
76 Content-Length: 0\r
77 Content-Type: application/x-www-form-urlencoded\r
78 \r
79 </protocol>
80
81 </verify>
82 </testcase>