Debian Codegraph @

deps/curl/tests/data/test1525

raw
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP CONNECT
7 HTTP proxy
8 proxytunnel
9 CURLOPT_PROXYHEADER
10 </keywords>
11 </info>
12
13 # Server-side
14 <reply>
15 <connect>
16 HTTP/1.1 200 OK
17
18 </connect>
19 <data>
20 HTTP/1.1 200 OK swsclose
21 Date: Thu, 09 Nov 2010 14:49:00 GMT
22 Server: test-server/fake
23 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
24 ETag: "21025-dc7-39462498"
25 </data>
26 <datacheck>
27 HTTP/1.1 200 OK
28
29 HTTP/1.1 200 OK swsclose
30 Date: Thu, 09 Nov 2010 14:49:00 GMT
31 Server: test-server/fake
32 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
33 ETag: "21025-dc7-39462498"
34 </datacheck>
35
36 </reply>
37 # Client-side
38 <client>
39 <server>
40 http
41 http-proxy
42 </server>
43 <tool>
44 lib1525
45 </tool>
46 <name>
47 CURLOPT_PROXYHEADER is ignored CURLHEADER_UNIFIED
48 </name>
49 <command>
50 http://the.old.moo.1525:%HTTPPORT/1525 %HOSTIP:%PROXYPORT
51 </command>
52 <features>
53 proxy
54 </features>
55 </client>
56
57 # Verify data after the test has been "shot"
58 <verify>
59 <proxy>
60 CONNECT the.old.moo.1525:%HTTPPORT HTTP/1.1
61 Host: the.old.moo.1525:%HTTPPORT
62 Proxy-Connection: Keep-Alive
63 User-Agent: Http Agent
64
65 </proxy>
66 <protocol>
67 PUT /1525 HTTP/1.1
68 Host: the.old.moo.1525:%HTTPPORT
69 Accept: */*
70 User-Agent: Http Agent
71 Content-Length: 13
72 Expect: 100-continue
73
74 Hello Cloud!
75 </protocol>
76 </verify>
77 </testcase>