Debian Codegraph @

curl/tests/data/test83

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 HTTP CONNECT
6 HTTP Basic auth
7 proxytunnel
8 </keywords>
9 </info>
10 #
11 # Server-side
12 <reply>
13 <data>
14 HTTP/1.1 200 OK
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake swsclose
17 Content-Type: text/html
18 Funny-head: yesyes
19
20 contents
21 </data>
22 <datacheck>
23 HTTP/1.1 200 Mighty fine indeed
24
25 HTTP/1.1 200 OK
26 Date: Thu, 09 Nov 2010 14:49:00 GMT
27 Server: test-server/fake swsclose
28 Content-Type: text/html
29 Funny-head: yesyes
30
31 contents
32 </datacheck>
33 </reply>
34
35 #
36 # Client-side
37 <client>
38 <server>
39 http
40 </server>
41 <name>
42 HTTP over proxy-tunnel with site authentication
43 </name>
44 <command>
45 http://%HOSTIP:%HTTPPORT/we/want/that/page/83 -p -x %HOSTIP:%HTTPPORT --user iam:myself
46 </command>
47 </client>
48
49 #
50 # Verify data after the test has been "shot"
51 <verify>
52 <strip>
53 ^User-Agent:.*
54 </strip>
55 <protocol>
56 CONNECT 127.0.0.1:%HTTPPORT HTTP/1.0
57 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
58 Host: 127.0.0.1:%HTTPPORT
59 Proxy-Connection: Keep-Alive
60
61 GET /we/want/that/page/83 HTTP/1.1
62 Authorization: Basic aWFtOm15c2VsZg==
63 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
64 Host: 127.0.0.1:%HTTPPORT
65 Accept: */*
66
67 </protocol>
68 </verify>