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

« back to all changes in this revision

Viewing changes to tests/data/test1080

  • 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
redirect_url
 
7
followlocation
 
8
--write-out
 
9
</keywords>
 
10
</info>
 
11
 
 
12
# Server-side
 
13
<reply>
 
14
<data nocheck="yes">
 
15
HTTP/1.1 301 This is a weirdo text message swsclose
 
16
Location: data/10800002.txt?coolsite=yes
 
17
Content-Length: 62
 
18
Connection: close
 
19
 
 
20
This server reply is for testing a simple Location: following
 
21
</data>
 
22
</reply>
 
23
 
 
24
# Client-side
 
25
<client>
 
26
<server>
 
27
http
 
28
</server>
 
29
 <name>
 
30
HTTP Location: on two URLs 'redirect_url' check
 
31
 </name>
 
32
 <command>
 
33
http://%HOSTIP:%HTTPPORT/we/want/our/1080 http://%HOSTIP:%HTTPPORT/we/want/our/1080 -w '%{redirect_url}\n'
 
34
</command>
 
35
</client>
 
36
 
 
37
# Verify data after the test has been "shot"
 
38
<verify>
 
39
<strip>
 
40
^User-Agent:.*
 
41
</strip>
 
42
<protocol>
 
43
GET /we/want/our/1080 HTTP/1.1
 
44
Host: %HOSTIP:%HTTPPORT
 
45
Accept: */*
 
46
 
 
47
GET /we/want/our/1080 HTTP/1.1
 
48
Host: %HOSTIP:%HTTPPORT
 
49
Accept: */*
 
50
 
 
51
</protocol>
 
52
<stdout mode="text">
 
53
HTTP/1.1 301 This is a weirdo text message swsclose
 
54
Location: data/10800002.txt?coolsite=yes
 
55
Content-Length: 62
 
56
Connection: close
 
57
 
 
58
This server reply is for testing a simple Location: following
 
59
http://%HOSTIP:%HTTPPORT/we/want/our/data/10800002.txt?coolsite=yes
 
60
HTTP/1.1 301 This is a weirdo text message swsclose
 
61
Location: data/10800002.txt?coolsite=yes
 
62
Content-Length: 62
 
63
Connection: close
 
64
 
 
65
This server reply is for testing a simple Location: following
 
66
http://%HOSTIP:%HTTPPORT/we/want/our/data/10800002.txt?coolsite=yes
 
67
</stdout>
 
68
</verify>
 
69
</testcase>