xref: /curl/tests/data/test1630 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTPS-proxy
7HTTPS-proxy Basic auth
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Type: text/html
18Funny-head: yesyes
19Content-Length: 22
20
21the content goes here
22</data>
23</reply>
24
25# Client-side
26<client>
27<server>
28http
29https-proxy
30</server>
31<name>
32HTTPS-proxy with Basic auth to HTTP without auth
33</name>
34<command>
35 -U fake@user:loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong -x https://%HOSTIP:%HTTPSPROXYPORT http://we.want.that.site.com/%TESTNUMBER --proxy-insecure
36</command>
37<features>
38proxy
39</features>
40</client>
41
42# Verify data after the test has been "shot"
43<verify>
44<proxy>
45GET http://we.want.that.site.com/%TESTNUMBER HTTP/1.1
46Host: we.want.that.site.com
47Proxy-Authorization: Basic ZmFrZUB1c2VyOmxvb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29uZw==
48User-Agent: curl/%VERSION
49Accept: */*
50Proxy-Connection: Keep-Alive
51
52</proxy>
53</verify>
54</testcase>
55