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

« back to all changes in this revision

Viewing changes to tests/data/test1110

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-03-18 08:55:19 UTC
  • mfrom: (3.4.3 squeeze)
  • mto: (3.5.1 squeeze) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: james.westby@ubuntu.com-20100318085519-iq2nvq06lp26abtp
Tags: upstream-7.20.0
ImportĀ upstreamĀ versionĀ 7.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
# Test that the fragment is not send as part of the path
 
3
# when it contains a query.
 
4
<info>
 
5
<keywords>
 
6
HTTP
 
7
CURLOPT_URL
 
8
</keywords>
 
9
</info>
 
10
 
 
11
# Server-side
 
12
<reply name="1">
 
13
<data>
 
14
HTTP/1.1 200 OK
 
15
Content-Length: 6
 
16
 
 
17
hello
 
18
</data>
 
19
</reply>
 
20
 
 
21
# Client-side
 
22
<client>
 
23
<server>
 
24
http
 
25
</server>
 
26
 <name>
 
27
HTTP GET with URL that contains a fragment after the query part
 
28
 </name>
 
29
 <command>
 
30
http://%HOSTIP:%HTTPPORT/1110?q=foobar#fragment
 
31
</command>
 
32
</client>
 
33
 
 
34
 
 
35
# Verify data after the test has been "shot"
 
36
<verify>
 
37
<strip>
 
38
^User-Agent:.*
 
39
</strip>
 
40
<protocol>
 
41
GET /1110?q=foobar HTTP/1.1
 
42
Host: %HOSTIP:%HTTPPORT
 
43
Accept: */*
 
44
 
 
45
</protocol>
 
46
</verify>
 
47
</testcase>