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

« back to all changes in this revision

Viewing changes to tests/data/test325

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2014-07-11 14:37:53 UTC
  • mfrom: (3.4.48 sid)
  • Revision ID: package-import@ubuntu.com-20140711143753-bdg0abifs1fa2wk1
Tags: 7.37.0-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
HTTPS
 
5
HTTP GET
 
6
--proto-redir
 
7
</keywords>
 
8
</info>
 
9
 
 
10
#
 
11
# Server-side
 
12
<reply>
 
13
<data>
 
14
HTTP/1.1 301 OK
 
15
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
16
Server: test-server/fake
 
17
Content-Length: 7
 
18
Location: http://%HOSTIP:%HTTPPORT/325
 
19
 
 
20
MooMoo
 
21
</data>
 
22
<datacheck>
 
23
HTTP/1.1 301 OK
 
24
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
25
Server: test-server/fake
 
26
Content-Length: 7
 
27
Location: http://%HOSTIP:%HTTPPORT/325
 
28
 
 
29
</datacheck>
 
30
</reply>
 
31
 
 
32
#
 
33
# Client-side
 
34
<client>
 
35
<features>
 
36
SSL
 
37
</features>
 
38
<server>
 
39
https
 
40
</server>
 
41
 <name>
 
42
HTTPS with attempted redirect to denied HTTP
 
43
 </name>
 
44
 <command>
 
45
-k https://%HOSTIP:%HTTPSPORT/325 --proto-redir -http --location
 
46
</command>
 
47
</client>
 
48
 
 
49
#
 
50
# Verify data after the test has been "shot"
 
51
<verify>
 
52
<strip>
 
53
^User-Agent:.*
 
54
</strip>
 
55
<protocol>
 
56
GET /325 HTTP/1.1
 
57
Host: %HOSTIP:%HTTPSPORT
 
58
Accept: */*
 
59
 
 
60
</protocol>
 
61
# 1 - Protocol http not supported or disabled in libcurl
 
62
<errorcode>
 
63
1
 
64
</errorcode>
 
65
</verify>
 
66
</testcase>