xref: /curl/tests/data/test523 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7CURLOPT_PORT
8CURLOPT_PROXY
9</keywords>
10</info>
11
12#
13# Server-side
14<reply>
15<data nocheck="yes">
16HTTP/1.1 200 OK swsclose
17Date: Tue, 09 Nov 2010 14:49:00 GMT
18Server: test-server/fake
19Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
20ETag: "21025-dc7-39462498"
21Accept-Ranges: bytes
22Content-Length: 6
23
24hello
25</data>
26</reply>
27
28#
29# Client-side
30<client>
31<server>
32http
33</server>
34<tool>
35lib%TESTNUMBER
36</tool>
37<name>
38HTTP GET with proxy and CURLOPT_PORT
39</name>
40# first URL then proxy
41<command>
42http://www.example.com:999/%TESTNUMBER http://%HOSTIP:%HTTPPORT
43</command>
44<features>
45proxy
46</features>
47</client>
48
49#
50# Verify data after the test has been "shot"
51<verify>
52<protocol>
53GET http://www.example.com:19999/%TESTNUMBER HTTP/1.1
54Host: www.example.com:19999
55Authorization: Basic eHh4Onl5eQ==
56Accept: */*
57Proxy-Connection: Keep-Alive
58
59</protocol>
60<stdout>
61hello
62</stdout>
63</verify>
64</testcase>
65