Debian Codegraph @

deps/curl/tests/data/test81

raw
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 HTTP proxy NTLM auth
8 </keywords>
9 </info>
10
11 # Server-side
12 <reply>
13
14 # This is supposed to be returned when the server gets a first
15 # Authorization: NTLM line passed-in from the client
16 <data1001>
17 HTTP/1.1 407 Now gimme that second request of crap
18 Server: Microsoft-IIS/5.0
19 Content-Type: text/html; charset=iso-8859-1
20 Content-Length: 34
21 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
22
23 This is not the real page either!
24 </data1001>
25
26 # This is supposed to be returned when the server gets the second
27 # Authorization: NTLM line passed-in from the client
28 <data1002>
29 HTTP/1.1 200 Things are fine in server land swsclose
30 Server: Microsoft-IIS/5.0
31 Content-Type: text/html; charset=iso-8859-1
32 Content-Length: 32
33
34 Finally, this is the real page!
35 </data1002>
36
37 <datacheck>
38 HTTP/1.1 407 Now gimme that second request of crap
39 Server: Microsoft-IIS/5.0
40 Content-Type: text/html; charset=iso-8859-1
41 Content-Length: 34
42 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
43
44 HTTP/1.1 200 Things are fine in server land swsclose
45 Server: Microsoft-IIS/5.0
46 Content-Type: text/html; charset=iso-8859-1
47 Content-Length: 32
48
49 Finally, this is the real page!
50 </datacheck>
51
52 </reply>
53
54 # Client-side
55 <client>
56 <features>
57 NTLM
58 SSL
59 !SSPI
60 debug
61 proxy
62 </features>
63 <server>
64 http
65 </server>
66 <name>
67 HTTP with proxy using NTLM authorization
68 </name>
69 <setenv>
70 # we force our own host name, in order to make the test machine independent
71 CURL_GETHOSTNAME=curlhost
72 # we try to use the LD_PRELOAD hack, if not a debug build
73 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
74 </setenv>
75 <command>
76 http://%HOSTIP:%HTTPPORT/81 --proxy-user testuser:testpass -x http://%HOSTIP:%HTTPPORT --proxy-ntlm
77 </command>
78 <precheck>
79 chkhostname curlhost
80 </precheck>
81 </client>
82
83 # Verify data after the test has been "shot"
84 <verify>
85 <strip>
86 ^User-Agent:.*
87 </strip>
88 <protocol>
89 GET http://%HOSTIP:%HTTPPORT/81 HTTP/1.1
90 Host: %HOSTIP:%HTTPPORT
91 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
92 User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
93 Accept: */*
94 Proxy-Connection: Keep-Alive
95
96 GET http://%HOSTIP:%HTTPPORT/81 HTTP/1.1
97 Host: %HOSTIP:%HTTPPORT
98 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
99 User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
100 Accept: */*
101 Proxy-Connection: Keep-Alive
102
103 </protocol>
104 </verify>
105 </testcase>