Debian Codegraph @

curl/tests/data/test239

raw
1 # Server-side
2 <reply>
3
4 # this is returned first since we get no proxy-auth
5 <data1001>
6 HTTP/1.1 407 Authorization Required to proxy me my dear
7 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
8 Content-Length: 33
9
10 Hey you, authenticate or go away!
11 </data1001>
12
13 # This is supposed to be returned when the server gets the second
14 # Authorization: NTLM line passed-in from the client
15 <data1002>
16 HTTP/1.1 200 Things are fine in proxy land swsclose
17 Server: Microsoft-IIS/5.0
18 Content-Type: text/html; charset=iso-8859-1
19 Content-Length; 42
20
21 Contents of that page you requested, sir.
22 </data1002>
23
24 <datacheck>
25 HTTP/1.1 407 Authorization Required to proxy me my dear
26 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
27 Content-Length: 33
28
29 HTTP/1.1 200 Things are fine in proxy land swsclose
30 Server: Microsoft-IIS/5.0
31 Content-Type: text/html; charset=iso-8859-1
32 Content-Length; 42
33
34 Contents of that page you requested, sir.
35 </datacheck>
36 </reply>
37
38 # Client-side
39 <client>
40 <server>
41 http
42 </server>
43 <features>
44 NTLM
45 </features>
46 <name>
47 HTTP proxy-auth NTLM and then POST
48 </name>
49 <command>
50 http://%HOSTIP:%HTTPPORT/239 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-ntlm -d "postit"
51 </command>
52 </client>
53
54 # Verify data after the test has been "shot"
55 <verify>
56 <strip>
57 ^User-Agent: curl/.*
58 </strip>
59 <protocol nonewline=yes>
60 POST http://%HOSTIP:%HTTPPORT/239 HTTP/1.1
61 Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
62 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
63 Host: %HOSTIP:%HTTPPORT
64 Pragma: no-cache
65 Accept: */*
66 Proxy-Connection: Keep-Alive
67 Content-Length: 0
68 Content-Type: application/x-www-form-urlencoded
69
70 POST http://127.0.0.1:8990/239 HTTP/1.1
71 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEUAAAAYABgAXQAAAAAAAABAAAAABQAFAEAAAAAAAAAARQAAAAAAAAB1AAAAAYIAAHNpbGx5oB5CPMq0JDu5tbxLow3sHn3jfoYDE+7QJVE7DA0GyDEwvj2BxsBctP9tT4fnCtL1
72 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
73 Host: 127.0.0.1:8990
74 Pragma: no-cache
75 Accept: */*
76 Proxy-Connection: Keep-Alive
77 Content-Length: 6
78 Content-Type: application/x-www-form-urlencoded
79
80 postit
81 </protocol>
82 </verify>