~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to tests/data/test1121

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2011-02-28 19:35:36 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20110228193536-p3a9jawxxofcsz7o
Tags: upstream-7.21.4
ImportĀ upstreamĀ versionĀ 7.21.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
HTTP
 
5
</keywords>
 
6
</info>
 
7
#
 
8
# Server-side
 
9
<reply>
 
10
<data>
 
11
HTTP/1.0 200 OK
 
12
Server: test-server/fake
 
13
Content-Type: text/html
 
14
Content-Length: 6
 
15
 
 
16
blaha
 
17
</data>
 
18
</reply>
 
19
 
 
20
#
 
21
# Client-side
 
22
<client>
 
23
<server>
 
24
http
 
25
</server>
 
26
 <name>
 
27
HTTP multiple provided Host: headers
 
28
 </name>
 
29
 <command>
 
30
-H "Host: host1" -H "Host: host2" -H "Host: host3" http://%HOSTIP:%HTTPPORT/1121
 
31
</command>
 
32
</client>
 
33
 
 
34
#
 
35
# Verify data after the test has been "shot"
 
36
<verify>
 
37
<strip>
 
38
^User-Agent:.*
 
39
</strip>
 
40
<protocol>
 
41
GET /1121 HTTP/1.1
 
42
Accept: */*
 
43
Host: host1
 
44
Host: host2
 
45
Host: host3
 
46
 
 
47
</protocol>
 
48
</verify>
 
49
</testcase>