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