~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to tests/data/test1083

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
HTTP
 
5
HTTP GET
 
6
--interface
 
7
IPv6
 
8
</keywords>
 
9
</info>
 
10
 
 
11
#
 
12
# Server-side
 
13
<reply>
 
14
<data>
 
15
HTTP/1.1 200 OK
 
16
Date: Mon, 28 Jul 2008 14:49:00 GMT
 
17
Server: test-server/fake
 
18
Content-Length: 6
 
19
Connection: close
 
20
Content-Type: text/plain
 
21
 
 
22
-foo-
 
23
</data>
 
24
</reply>
 
25
 
 
26
#
 
27
# Client-side
 
28
<client>
 
29
<features>
 
30
ipv6
 
31
</features>
 
32
<server>
 
33
http-ipv6
 
34
</server>
 
35
 <name>
 
36
HTTP-IPv6 GET with ip6-localhost --interface
 
37
 </name>
 
38
 <command>
 
39
-g "http://%HOST6IP:%HTTP6PORT/1083" --interface ip6-localhost
 
40
</command>
 
41
<precheck>
 
42
perl -e "if ('%CLIENT6IP' ne '[::1]') {print 'Test requires default test server host address';} else {exec './server/resolve --ipv6 ip6-localhost'; print 'Cannot run precheck resolve';}"
 
43
</precheck>
 
44
</client>
 
45
 
 
46
#
 
47
# Verify data after the test has been "shot"
 
48
<verify>
 
49
<strip>
 
50
^User-Agent:.*
 
51
</strip>
 
52
<protocol>
 
53
GET /1083 HTTP/1.1
 
54
Host: %HOST6IP:%HTTP6PORT
 
55
Accept: */*
 
56
 
 
57
</protocol>
 
58
</verify>
 
59
</testcase>