~ubuntu-branches/ubuntu/quantal/curl/quantal

« back to all changes in this revision

Viewing changes to tests/data/test25

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2002-03-12 19:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20020312190621-iqx7k9cipo5d0ifr
Tags: upstream-7.9.5
ImportĀ upstreamĀ versionĀ 7.9.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Server-side
 
2
<reply>
 
3
<data>
 
4
HTTP/1.1 301 This is a weirdo text message
 
5
Server: test-server/fake
 
6
Location: data/reply/25
 
7
Content-Length: 32
 
8
Connection: close
 
9
 
 
10
Redirect to the same URL again!
 
11
</data>
 
12
<datacheck>
 
13
HTTP/1.1 301 This is a weirdo text message
 
14
Server: test-server/fake
 
15
Location: data/reply/25
 
16
Content-Length: 32
 
17
Connection: close
 
18
 
 
19
HTTP/1.1 301 This is a weirdo text message
 
20
Server: test-server/fake
 
21
Location: data/reply/25
 
22
Content-Length: 32
 
23
Connection: close
 
24
 
 
25
HTTP/1.1 301 This is a weirdo text message
 
26
Server: test-server/fake
 
27
Location: data/reply/25
 
28
Content-Length: 32
 
29
Connection: close
 
30
 
 
31
HTTP/1.1 301 This is a weirdo text message
 
32
Server: test-server/fake
 
33
Location: data/reply/25
 
34
Content-Length: 32
 
35
Connection: close
 
36
 
 
37
HTTP/1.1 301 This is a weirdo text message
 
38
Server: test-server/fake
 
39
Location: data/reply/25
 
40
Content-Length: 32
 
41
Connection: close
 
42
 
 
43
HTTP/1.1 301 This is a weirdo text message
 
44
Server: test-server/fake
 
45
Location: data/reply/25
 
46
Content-Length: 32
 
47
Connection: close
 
48
 
 
49
</datacheck>
 
50
</reply>
 
51
 
 
52
# Client-side
 
53
<client>
 
54
 <name>
 
55
looping HTTP Location: following with --max-redirs, no persistance
 
56
 </name>
 
57
 <command>
 
58
http://%HOSTIP:%HOSTPORT/want/25 -L --max-redirs 5
 
59
</command>
 
60
</test>
 
61
 
 
62
# Verify data after the test has been "shot"
 
63
<verify>
 
64
<strip>
 
65
^User-Agent: curl/.*
 
66
</strip>
 
67
<protocol>
 
68
GET /want/25 HTTP/1.1
 
69
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
 
70
Host: 127.0.0.1:8999
 
71
Pragma: no-cache
 
72
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
 
73
 
 
74
GET /want/data/reply/25 HTTP/1.1
 
75
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
 
76
Host: 127.0.0.1:8999
 
77
Pragma: no-cache
 
78
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
 
79
 
 
80
GET /want/data/reply/data/reply/25 HTTP/1.1
 
81
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
 
82
Host: 127.0.0.1:8999
 
83
Pragma: no-cache
 
84
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
 
85
 
 
86
GET /want/data/reply/data/reply/data/reply/25 HTTP/1.1
 
87
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
 
88
Host: 127.0.0.1:8999
 
89
Pragma: no-cache
 
90
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
 
91
 
 
92
GET /want/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
 
93
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
 
94
Host: 127.0.0.1:8999
 
95
Pragma: no-cache
 
96
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
 
97
 
 
98
GET /want/data/reply/data/reply/data/reply/data/reply/data/reply/25 HTTP/1.1
 
99
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
 
100
Host: 127.0.0.1:8999
 
101
Pragma: no-cache
 
102
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
 
103
 
 
104
</protocol>
 
105
 
 
106
<errorcode>
 
107
47
 
108
</errorcode>
 
109
</verify>