Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test239
blob14b005c3c8dceba81090b6cf2941543a79abb520
1 <testcase>
2 # Server-side
3 <reply>
5 # this is returned first since we get no proxy-auth
6 <data1001>
7 HTTP/1.1 407 Authorization Required to proxy me my dear
8 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
9 Content-Length: 34
11 Hey you, authenticate or go away!
12 </data1001>
14 # This is supposed to be returned when the server gets the second
15 # Authorization: NTLM line passed-in from the client
16 <data1002>
17 HTTP/1.1 200 Things are fine in proxy land swsclose
18 Server: Microsoft-IIS/5.0
19 Content-Type: text/html; charset=iso-8859-1
20 Content-Length: 42
22 Contents of that page you requested, sir.
23 </data1002>
25 <datacheck>
26 HTTP/1.1 407 Authorization Required to proxy me my dear
27 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
28 Content-Length: 34
30 HTTP/1.1 200 Things are fine in proxy land swsclose
31 Server: Microsoft-IIS/5.0
32 Content-Type: text/html; charset=iso-8859-1
33 Content-Length: 42
35 Contents of that page you requested, sir.
36 </datacheck>
37 </reply>
39 # Client-side
40 <client>
41 <server>
42 http
43 </server>
44 <features>
45 NTLM
46 </features>
47  <name>
48 HTTP proxy-auth NTLM and then POST
49  </name>
50  <command>
51 http://%HOSTIP:%HTTPPORT/239 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-ntlm -d "postit"
52 </command>
53 </client>
55 # Verify data after the test has been "shot"
56 <verify>
57 <strip>
58 ^User-Agent: curl/.*
59 </strip>
60 # We strip off a large chunk of the type-2 NTLM message since it depends on
61 # the local host name and thus differs on different machines!
62 <strippart>
63 s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
64 </strippart>
65 <protocol nonewline="yes">
66 POST http://%HOSTIP:%HTTPPORT/239 HTTP/1.1
67 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
68 User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
69 Host: %HOSTIP:%HTTPPORT
70 Pragma: no-cache
71 Accept: */*
72 Proxy-Connection: Keep-Alive
73 Content-Length: 0
74 Content-Type: application/x-www-form-urlencoded
76 POST http://%HOSTIP:%HTTPPORT/239 HTTP/1.1
77 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
78 User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
79 Host: %HOSTIP:%HTTPPORT
80 Pragma: no-cache
81 Accept: */*
82 Proxy-Connection: Keep-Alive
83 Content-Length: 6
84 Content-Type: application/x-www-form-urlencoded
86 postit
87 </protocol>
88 </verify>
89 </testcase>