xref: /curl/tests/data/test1613 (revision e2b4df7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP proxy
6--request-target
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 OK
15Date: Sat, 29 Feb 2020 16:10:44 GMT
16Server: Blafasel/1.1
17Last-Modified: Sat, 29 Feb 2020 16:10:44 GMT
18Content-Length: 0
19Connection: close
20Content-Type: text/html
21
22</data>
23</reply>
24
25#
26# Client-side
27<client>
28<server>
29http
30</server>
31<name>
32Send "OPTIONS *" with --request-target to a proxy
33</name>
34<features>
35proxy
36</features>
37<command>
38--request-target '*' -X OPTIONS --proxy http://%HOSTIP:%HTTPPORT/ -H "Testno: %TESTNUMBER" http://www.example.org/
39</command>
40</client>
41
42<verify>
43<protocol>
44OPTIONS * HTTP/1.1
45Host: www.example.org
46User-Agent: curl/%VERSION
47Accept: */*
48Proxy-Connection: Keep-Alive
49Testno: %TESTNUMBER
50
51</protocol>
52</verify>
53</testcase>
54