mp::odr odr;
Z_GDU *gdu_req = z_get_HTTP_Request_uri(odr,
- "http://proxyhost/proxypath/targetsite/page1.html", 0, 1);
-
+ "http://proxyhost/proxypath/targetsite/page1.html", 0, 1);
+
+ Z_HTTP_Request *hreq = gdu_req->u.HTTP_Request;
+ z_HTTP_header_set(odr, &hreq->headers,
+ "X-Metaproxy-SkipLink", ".* skiplink.com" );
pack.request() = gdu_req;
//create the http response
" Another abs link</a>"
"<a href=\"/docs/page4.html\" />"
"<A href=\"cxcx\" />"
- "<a HREF=\"cx \" onclick=\"foo("foo");\"/>"
+ "<a HREF=\"cx \" onclick=\"foo("foo");\"/>\n"
+ "<a href=\"http://www.skiplink.com/page5.html\">skip</a>\n"
"</body></html>";
const char *resp_expected =
"HTTP/1.1 200 OK\r\n"
- "Content-Length: 631\r\n"
+ "Content-Length: 686\r\n"
"Content-Type: text/html\r\n"
"Link: <http://proxyhost/proxypath/targetsite/file.xml>; rel=absolute\r\n"
"Link: </dir/file.xml>; rel=relative\r\n"
" Another abs link</a>"
"<a href=\"/docs/page4.html\"/>"
"<A href=\"cycx\"/>"
- "<a HREF=\"cy \" onclick=\"foo("bar");\"/>"
+ "<a HREF=\"cy \" onclick=\"foo("bar");\"/>\n"
+ "<a href=\"http://www.skiplink.com/page5.html\">skip</a>\n"
"</body></html>";
Z_GDU *gdu_res;