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

« back to all changes in this revision

Viewing changes to tests/data/test1074

  • 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
HTTP/1.0
 
7
</keywords>
 
8
</info>
 
9
 
 
10
# Server-side
 
11
<reply>
 
12
<data nocheck="yes">
 
13
HTTP/1.0 200 OK
 
14
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
15
Content-Length: 9
 
16
Connection: Keep-Alive
 
17
 
 
18
surprise
 
19
</data>
 
20
<data1>
 
21
HTTP/1.0 200 OK swsclose
 
22
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
23
Connection: close
 
24
 
 
25
surprise2
 
26
</data1>
 
27
 
 
28
<postcmd>
 
29
wait 1
 
30
</postcmd>
 
31
</reply>
 
32
 
 
33
# Client-side
 
34
<client>
 
35
<server>
 
36
http
 
37
</server>
 
38
 <name>
 
39
HTTP downgrade to HTTP/1.0 on second request
 
40
 </name>
 
41
 <command>
 
42
http://%HOSTIP:%HTTPPORT/want/1074 http://%HOSTIP:%HTTPPORT/wantmore/10740001
 
43
</command>
 
44
</client>
 
45
 
 
46
# Verify data after the test has been "shot"
 
47
<verify>
 
48
<stdout>
 
49
HTTP/1.0 200 OK
 
50
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
51
Content-Length: 9
 
52
Connection: Keep-Alive
 
53
 
 
54
surprise
 
55
HTTP/1.0 200 OK swsclose
 
56
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
57
Connection: close
 
58
 
 
59
surprise2
 
60
</stdout>
 
61
 
 
62
<strip>
 
63
^User-Agent:.*
 
64
</strip>
 
65
<protocol>
 
66
GET /want/1074 HTTP/1.1
 
67
Host: %HOSTIP:%HTTPPORT
 
68
Accept: */*
 
69
 
 
70
GET /wantmore/10740001 HTTP/1.0
 
71
Host: %HOSTIP:%HTTPPORT
 
72
Accept: */*
 
73
 
 
74
</protocol>
 
75
</verify>
 
76
</testcase>