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

« back to all changes in this revision

Viewing changes to tests/data/test1078

  • 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/1.0
 
6
HTTP GET
 
7
HTTP CONNECT
 
8
HTTP proxy
 
9
proxytunnel
 
10
</keywords>
 
11
</info>
 
12
 
 
13
#
 
14
# Server-side
 
15
<reply>
 
16
<data nocheck="yes">
 
17
HTTP/1.0 200 OK
 
18
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
19
Server: test-server/fake
 
20
Content-Type: text/html
 
21
Funny-head: yesyes
 
22
Content-Length: 9
 
23
Connection: keep-alive
 
24
 
 
25
contents
 
26
</data>
 
27
</reply>
 
28
 
 
29
#
 
30
# Client-side
 
31
<client>
 
32
<server>
 
33
http
 
34
</server>
 
35
 <name>
 
36
HTTP 1.0 CONNECT with proxytunnel and downgrade GET to HTTP/1.0
 
37
 </name>
 
38
 <command>
 
39
--proxy1.0 %HOSTIP:%HTTPPORT -p http://%HOSTIP:%HTTPPORT/we/want/that/page/1078 http://%HOSTIP:%HTTPPORT/we/want/that/page/1078
 
40
</command>
 
41
</client>
 
42
 
 
43
#
 
44
# Verify data after the test has been "shot"
 
45
<verify>
 
46
<strip>
 
47
^User-Agent:.*
 
48
</strip>
 
49
<protocol>
 
50
CONNECT %HOSTIP:%HTTPPORT HTTP/1.0
 
51
Host: %HOSTIP:%HTTPPORT
 
52
Proxy-Connection: Keep-Alive
 
53
 
 
54
GET /we/want/that/page/1078 HTTP/1.1
 
55
Host: %HOSTIP:%HTTPPORT
 
56
Accept: */*
 
57
 
 
58
GET /we/want/that/page/1078 HTTP/1.0
 
59
Host: %HOSTIP:%HTTPPORT
 
60
Accept: */*
 
61
 
 
62
</protocol>
 
63
<stdout>
 
64
HTTP/1.1 200 Mighty fine indeed
 
65
 
 
66
HTTP/1.0 200 OK
 
67
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
68
Server: test-server/fake
 
69
Content-Type: text/html
 
70
Funny-head: yesyes
 
71
Content-Length: 9
 
72
Connection: keep-alive
 
73
 
 
74
contents
 
75
HTTP/1.0 200 OK
 
76
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
77
Server: test-server/fake
 
78
Content-Type: text/html
 
79
Funny-head: yesyes
 
80
Content-Length: 9
 
81
Connection: keep-alive
 
82
 
 
83
contents
 
84
</stdout>
 
85
</verify>
 
86
</testcase>