Debian Codegraph @

curl/tests/data/test80

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 HTTP CONNECT
6 HTTP Basic auth
7 HTTP proxy Basic auth
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 CONNECT with proxytunnel and host Basic authentication
43 </name>
44 <command>
45 http://%HOSTIP:%HTTPPORT/we/want/that/page/80 -p -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user youare:yourself
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 Host: 127.0.0.1:%HTTPPORT
58 Proxy-Authorization: Basic eW91YXJlOnlvdXJzZWxm
59 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
60 Proxy-Connection: Keep-Alive
61
62 GET /we/want/that/page/80 HTTP/1.1
63 Authorization: Basic aWFtOm15c2VsZg==
64 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
65 Host: 127.0.0.1:%HTTPPORT
66 Accept: */*
67
68 </protocol>
69 </verify>