~ubuntu-branches/ubuntu/hoary/curl/hoary-security

« back to all changes in this revision

Viewing changes to tests/data/test62

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Server-side
 
2
<reply>
 
3
<data>
 
4
HTTP/1.1 200 OK swsclose
 
5
Date: Thu, 09 Nov 2010 14:49:00 GMT
 
6
Content-Type: text/html
 
7
 
 
8
boo
 
9
</data>
 
10
</reply>
 
11
 
 
12
# Client-side
 
13
<client>
 
14
<server>
 
15
http
 
16
</server>
 
17
 <name>
 
18
HTTP, send cookies when using custom Host:
 
19
 </name>
 
20
 <command>
 
21
http://%HOSTIP:%HOSTPORT/we/want/62 -b log/jar62.txt -H "Host: www.host.foo.com"
 
22
</command>
 
23
<file name="log/jar62.txt">
 
24
# Netscape HTTP Cookie File
 
25
# http://www.netscape.com/newsref/std/cookie_spec.html
 
26
# This file was generated by libcurl! Edit at your own risk.
 
27
 
 
28
.foo.com        TRUE    /we/want/       FALSE   1170327387      test    yes
 
29
.host.foo.com   TRUE    /we/want/       FALSE   1170327387      test2   yes
 
30
.fake.host.foo.com      TRUE    /we/want/       FALSE   1170327387      test4   yes
 
31
 
 
32
.foo.com        TRUE    /moo    TRUE    0       test3   maybe
 
33
</file>
 
34
</client>
 
35
 
 
36
# Verify data after the test has been "shot"
 
37
<verify>
 
38
<strip>
 
39
^User-Agent:.*
 
40
</strip>
 
41
<protocol>
 
42
GET /we/want/62 HTTP/1.1
 
43
Pragma: no-cache
 
44
Accept: */*
 
45
Cookie: test2=yes; test=yes
 
46
Host: www.host.foo.com
 
47
 
 
48
</protocol>
 
49
</verify>