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

« back to all changes in this revision

Viewing changes to tests/data/test1082

  • 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
</keywords>
 
8
</info>
 
9
 
 
10
#
 
11
# Server-side
 
12
<reply>
 
13
<data>
 
14
HTTP/1.1 200 OK
 
15
Date: Mon, 28 Jul 2008 14:49:00 GMT
 
16
Server: test-server/fake
 
17
Content-Length: 6
 
18
Connection: close
 
19
Content-Type: text/plain
 
20
 
 
21
-foo-
 
22
</data>
 
23
</reply>
 
24
 
 
25
#
 
26
# Client-side
 
27
<client>
 
28
<server>
 
29
http
 
30
</server>
 
31
 <name>
 
32
HTTP GET with localhost --interface
 
33
 </name>
 
34
 <command>
 
35
http://%HOSTIP:%HTTPPORT/1082 --interface localhost
 
36
</command>
 
37
<precheck>
 
38
perl -e "print 'Test requires default test server host address' if ( '%CLIENTIP' ne '127.0.0.1' );"
 
39
</precheck>
 
40
</client>
 
41
 
 
42
#
 
43
# Verify data after the test has been "shot"
 
44
<verify>
 
45
<strip>
 
46
^User-Agent:.*
 
47
</strip>
 
48
<protocol>
 
49
GET /1082 HTTP/1.1
 
50
Host: %HOSTIP:%HTTPPORT
 
51
Accept: */*
 
52
 
 
53
</protocol>
 
54
</verify>
 
55
</testcase>