~ubuntu-branches/ubuntu/dapper/curl/dapper-security

« back to all changes in this revision

Viewing changes to tests/data/test151

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Server-side
 
2
<reply>
 
3
<data>
 
4
HTTP/1.0 401 BAD BOY
 
5
Server: swsclose
 
6
Content-Type: text/html
 
7
 
 
8
This contains a response code >= 400, so curl shouldn't display this.  Even
 
9
though it's a response code that triggers authentication, we're not using
 
10
authentication so we should still fail.
 
11
</data>
 
12
</reply>
 
13
 
 
14
# Client-side
 
15
<client>
 
16
<server>
 
17
http
 
18
</server>
 
19
 <name>
 
20
HTTP GET with an error code that might trick authentication
 
21
 </name>
 
22
 <command>
 
23
http://%HOSTIP:%HOSTPORT/151
 
24
</command>
 
25
</test>
 
26
 
 
27
# Verify data after the test has been "shot"
 
28
<verify>
 
29
<strip>
 
30
^User-Agent: curl/.*
 
31
</strip>
 
32
<protocol>
 
33
GET /151 HTTP/1.1
 
34
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
 
35
Host: 127.0.0.1:8999
 
36
Pragma: no-cache
 
37
Accept: */*
 
38
 
 
39
</protocol>
 
40
</verify>