~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to tests/data/test265

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-12-12 15:04:52 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20051212150452-2ymlra67b2p7kjyy
Tags: 7.15.1-1ubuntu1
Resynchronise with Debian to get URL parser overflow fix from 7.15.1
(CVE-2005-4077).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Server-side
 
2
<reply>
 
3
 
 
4
# this is returned first since we get no proxy-auth
 
5
<data1001>
 
6
HTTP/1.0 407 Authorization Required to proxy me my dear
 
7
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
 
8
Content-Length: 1033
 
9
 
 
10
And you should ignore this data.
 
11
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQz
 
12
</data1001>
 
13
 
 
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
 
18
Server: Microsoft-IIS/5.0
 
19
Content-Type: text/html; charset=iso-8859-1
 
20
 
 
21
</data1002>
 
22
 
 
23
# this is returned when we get a GET!
 
24
<data2>
 
25
HTTP/1.1 200 OK
 
26
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
27
Content-Length: 7
 
28
Connection: close
 
29
Content-Type: text/html
 
30
Funny-head: yesyes
 
31
 
 
32
daniel
 
33
</data2>
 
34
 
 
35
# then this is returned when we get prox�-auth
 
36
<data1000>
 
37
HTTP/1.1 200 OK swsbounce
 
38
Server: no
 
39
 
 
40
Nice proxy auth sir!
 
41
</data1000>
 
42
 
 
43
<datacheck>
 
44
HTTP/1.0 407 Authorization Required to proxy me my dear
 
45
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
 
46
Content-Length: 1033
 
47
 
 
48
HTTP/1.1 200 Things are fine in proxy land
 
49
Server: Microsoft-IIS/5.0
 
50
Content-Type: text/html; charset=iso-8859-1
 
51
 
 
52
HTTP/1.1 200 OK
 
53
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
54
Content-Length: 7
 
55
Connection: close
 
56
Content-Type: text/html
 
57
Funny-head: yesyes
 
58
 
 
59
daniel
 
60
</datacheck>
 
61
</reply>
 
62
 
 
63
# Client-side
 
64
<client>
 
65
<server>
 
66
http
 
67
</server>
 
68
<features>
 
69
NTLM
 
70
</features>
 
71
 <name>
 
72
HTTP proxy CONNECT auth NTLM and then POST, response-body in the 407
 
73
 </name>
 
74
 <command>
 
75
http://test.remote.server.com:265/path/2650002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-ntlm --proxytunnel -d "postit"
 
76
</command>
 
77
</client>
 
78
 
 
79
# Verify data after the test has been "shot"
 
80
<verify>
 
81
<strip>
 
82
^User-Agent: curl/.*
 
83
</strip>
 
84
<protocol nonewline=yes>
 
85
CONNECT test.remote.server.com:265 HTTP/1.0
 
86
Host: test.remote.server.com:265
 
87
Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
 
88
Proxy-Connection: Keep-Alive
 
89
 
 
90
CONNECT test.remote.server.com:265 HTTP/1.0
 
91
Host: test.remote.server.com:265
 
92
Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEUAAAAYABgAXQAAAAAAAABAAAAABQAFAEAAAAAAAAAARQAAAAAAAAB1AAAAAYIAAHNpbGx5oB5CPMq0JDu5tbxLow3sHn3jfoYDE+7QJVE7DA0GyDEwvj2BxsBctP9tT4fnCtL1
 
93
Proxy-Connection: Keep-Alive
 
94
 
 
95
POST /path/2650002 HTTP/1.1
 
96
User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
 
97
Host: test.remote.server.com:265
 
98
Accept: */*
 
99
Content-Length: 6
 
100
Content-Type: application/x-www-form-urlencoded
 
101
 
 
102
postit
 
103
</protocol>
 
104
</verify>