<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
Hello,<BR>
<BR>
I am having trouble trying to use Web Polygraph with a Proxy.<BR>
<BR>
I seem to have tracked it down to Web Polygraph not sending a Host Header with the request and so the Proxy rejects the connections.<BR>
<BR>
I have captured the network traffic during this to see what is happening and I can see that for a request sent from my browser the Host Header is sent but not when a request comes from Web Polygraph.<BR>
<BR>
>From Web Polygraph to Proxy:<BR>
<BR>
CONNECT 192.168.29.104:443 HTTP/1.1<BR>
Proxy-Connection: close<BR>
<BR>
>From Browser to Proxy:<BR>
<BR>
CONNECT 192.168.29.104:443 HTTP/1.1<BR>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.22) Gecko/20110905 Ubuntu/10.04 (lucid) Firefox/3.6.22<BR>
Proxy-Connection: keep-alive<BR>
Host: 192.168.29.104<BR>
<BR>
Here is an extract from my polygraph.pg file so you can see what I am trying to do. Is there some configuration missing? Been stuck on this problem for a while, originally had a problem trying to jsut run basic SSL tests. When going direct from Client to Server (no proxy involved), web-polygraph runs fine. If you require any further information please do let me know.<BR>
<BR>
I am running v 4.4.0.<BR>
<BR>
SslWrap wrap = {<BR>
        protocols = [ "SSLv3", "TLSv1" ];<BR>
        root_certificate = "/opt/home/user/CA-priv+pub.pem";<BR>
        ciphers = [ "ALL:HIGH: !SSLv2: !aNULL: !AES128-SHA: !AES256-SHA:": 100% ];<BR>
         rsa_key_sizes = [ 512bit, 1024bit, 2048bit ];<BR>
        ssl_config_file = "/opt/home/user/myssl.conf";<BR>
         session_resumption = 40%;<BR>
         session_cache = 100;<BR>
};<BR>
<BR>
<BR>
DnsResolver dr = {<BR>
    servers = [ '127.0.0.1:53' ];<BR>
    timeout = 5sec;<BR>
};<BR>
<BR>
<BR>
Server PlainServer = {<BR>
        kind = "HTTP";<BR>
        contents = [ cntJPG: 26%, cntGIF: 28%, cntPNG: 9%, cntPDF: 0.05%, cntZIP: 0.22%, cntMalware, cntEXE: 0.43%, cntSWF: 1.9%, cntJavascript: 32% ];<BR>
        direct_access = contents;<BR>
        addresses = [ '192.168.29.104:8080' , '192.168.29.104:80' ];<BR>
};<BR>
<BR>
Server SSL = PlainServer;<BR>
<BR>
SSL = {<BR>
        kind = "HTTPS";<BR>
        addresses = [ '192.168.29.104:443' ];<BR>
        ssl_wraps = [ wrap ];<BR>
};<BR>
<BR>
Robot R = {<BR>
        kind = "robot";<BR>
        pop_model = { pop_distr = popUnif(); };<BR>
        recurrence = 15% ;<BR>
        req_rate = 1/sec;<BR>
        ssl_wraps = [ wrap ]; <BR>
        origins = [ PlainServer.addresses, SSL.addresses ];<BR>
         http_proxies = [ '192.168.111.42:8080' ];<BR>
        addresses = [ '192.168.29.101' ** 200 , '192.168.29.103' ** 5 , '192.168.29.105' ** 2 , '192.168.29.107'  ** 200, '192.168.29.109' ** 200 , '192.168.29.111' ** 200 , '192.168.29.113' ** 200 , '192.168.29.115' ** 200 ];<BR>
};<BR>
<BR>
use (hostnames);<BR>
use (SSL,PlainServer,R);<BR>
<BR>
</BODY>
</HTML>