• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data nocheck="yes">
14HTTP/1.1 200 OK
15Uknown-header: blrub
16Content-Length: 6
17
18-foo-
19</data>
20
21<servercmd>
22connection-monitor
23</servercmd>
24</reply>
25
26#
27# Client-side
28<client>
29<server>
30http
31</server>
32 <name>
33Re-using HTTP proxy connection for two different host names
34 </name>
35 <command>
36--proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.1421:8990/ http://different.remote.haxx.se.1421:8990
37</command>
38<features>
39proxy
40</features>
41</client>
42
43#
44# Verify data after the test has been "shot"
45<verify>
46<stdout>
47HTTP/1.1 200 OK
48Uknown-header: blrub
49Content-Length: 6
50
51-foo-
52HTTP/1.1 200 OK
53Uknown-header: blrub
54Content-Length: 6
55
56-foo-
57</stdout>
58<strip>
59^User-Agent:.*
60</strip>
61<protocol>
62GET http://test.remote.haxx.se.1421:8990/ HTTP/1.1
63Host: test.remote.haxx.se.1421:8990
64Accept: */*
65Proxy-Connection: Keep-Alive
66
67GET http://different.remote.haxx.se.1421:8990/ HTTP/1.1
68Host: different.remote.haxx.se.1421:8990
69Accept: */*
70Proxy-Connection: Keep-Alive
71
72[DISCONNECT]
73</protocol>
74</verify>
75</testcase>
76