Commit 18e60418 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

ESI testcase for including from different host (http://...)



git-svn-id: http://www.varnish-cache.org/svn/trunk@2832 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 469cd495
# $Id$
test "ESI include with http://"
server s1 {
rxreq
expect req.url == "/foo/bar"
txresp -body {
Before include
<!--esi <esi:include src="http://bozz/body"> -->
After include
}
} -start
server s2 -listen 127.0.0.1:9180 {
rxreq
expect req.url == "/body"
txresp -body {
Included file
}
} -start
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.http.host == "bozz") {
set req.backend = s2;
} else {
set req.backend = s1;
}
}
sub vcl_fetch {
esi;
}
} -start
client c1 {
txreq -url /foo/bar -hdr "Host: froboz"
rxresp
expect resp.status == 200
}
client c1 -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment