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

« back to all changes in this revision

Viewing changes to tests/data/test1328

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2012-03-23 16:24:51 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 59.
  • Revision ID: package-import@ubuntu.com-20120323162451-z4gstlabjkgnrh7h
Tags: upstream-7.25.0
ImportĀ upstreamĀ versionĀ 7.25.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
HTTP
 
5
HTTP GET
 
6
-f
 
7
</keywords>
 
8
</info>
 
9
 
 
10
<reply>
 
11
<data>
 
12
HTTP/1.1 404 OK
 
13
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
14
Content-Length: 6
 
15
Funny-head: yesyes
 
16
 
 
17
-noo-
 
18
</data>
 
19
<data1>
 
20
HTTP/1.1 200 OK
 
21
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
22
Content-Length: 6
 
23
Connection: close
 
24
Funny-head: yesyes
 
25
 
 
26
-yes-
 
27
</data1>
 
28
<datacheck>
 
29
HTTP/1.1 200 OK
 
30
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
31
Content-Length: 6
 
32
Connection: close
 
33
Funny-head: yesyes
 
34
 
 
35
-yes-
 
36
</datacheck>
 
37
</reply>
 
38
 
 
39
#
 
40
# Client-side
 
41
<client>
 
42
<server>
 
43
http
 
44
</server>
 
45
 <name>
 
46
HTTP GET a globbed range with -f
 
47
 </name>
 
48
 <command>
 
49
-f 'http://%HOSTIP:%HTTPPORT/[13280000-13280001]' -o log/#1
 
50
</command>
 
51
</client>
 
52
 
 
53
#
 
54
# Verify data after the test has been "shot"
 
55
<verify>
 
56
<strip>
 
57
^User-Agent:.*
 
58
</strip>
 
59
<protocol>
 
60
GET /13280000 HTTP/1.1
 
61
Host: %HOSTIP:%HTTPPORT
 
62
Accept: */*
 
63
 
 
64
GET /13280001 HTTP/1.1
 
65
Host: %HOSTIP:%HTTPPORT
 
66
Accept: */*
 
67
 
 
68
</protocol>
 
69
</verify>
 
70
</testcase>