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