xref: /curl/tests/data/test717 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5SOCKS5
6all_proxy
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Date: Tue, 09 Nov 2010 14:49:00 GMT
15Server: test-server/fake
16Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
17ETag: "21025-dc7-39462498"
18Accept-Ranges: bytes
19Content-Length: 6
20Connection: close
21Content-Type: text/html
22Funny-head: yesyes
23
24-foo-
25</data>
26# method 2 is SOCKS5 asking for user+password
27<servercmd>
28method 2
29user uz3r
30password p4ssworm
31backendport %HTTPPORT
32</servercmd>
33</reply>
34
35#
36# Client-side
37<client>
38<server>
39socks5
40http
41</server>
42<name>
43SOCKS5 proxy auth
44</name>
45
46# target a port that won't work without the SOCKS magic
47<command>
48http://%HOSTIP:1/%TESTNUMBER -x socks5://uz3r:p4ssworm@%HOSTIP:%SOCKSPORT
49</command>
50<features>
51proxy
52</features>
53</client>
54
55#
56# Verify data after the test has been "shot"
57<verify>
58<protocol>
59GET /%TESTNUMBER HTTP/1.1
60Host: %HOSTIP:1
61User-Agent: curl/%VERSION
62Accept: */*
63
64</protocol>
65</verify>
66</testcase>
67