<div dir="ltr">Hi,<div><br></div><div>I have a usecase where I have a reverse proxy that uses a customized ProxyHandler - for some hosts, I need to proxy the requests onwards via a proxy server - e.g. a bluecoat proxy.</div><div><br></div><div>So something like this:</div><div>Browser --&gt; Undertow reverse proxy --&gt; Bluecoat Proxy --&gt; Web server</div><div><br></div><div>So, I need to use the undertow client with a (non-reverse) proxy server.</div><div><br></div><div>I am guessing that with a ClientRequest, for non-ssl requests I should just be able to change the path from /mypath to <a href="http://my.server.name/mypath">http://my.server.name/mypath</a> before sending it to the proxy server instead of to the destination host directly.</div><div><br></div><div>But what would be the ideal way of handling this when I need SSL so I need to wrap the requests inside a &quot;CONNECT <a href="http://my.server.name:443">my.server.name:443</a> HTTP/1.1&quot; block before starting the SSL negotiation ? Any pointers ?</div><div><br></div><div>Would creating a specific ClientProvider be a sensible way ?<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div><span style="font-family:verdana,sans-serif;font-size:13px">Med venlig hilsen / Best regards</span></div><div><p><b><span lang="EN-GB" style="font-size:10pt"><font color="#000066"><font face="verdana, sans-serif"><span style="color:rgb(34,34,34);background-color:rgb(255,255,255)">Kim Rasmussen</span></font></font></span></b><b><span lang="EN-GB" style="color:rgb(0,51,102)"><font face="verdana, sans-serif"><br></font></span></b><span lang="EN-GB" style="font-size:10pt;color:rgb(102,102,102)"><font face="verdana, sans-serif">Partner, IT Architect</font></span></p><p><b><span lang="EN-GB" style="font-size:10pt;color:rgb(102,102,102)"><font face="verdana, sans-serif">Asseco Denmark A/S</font></span></b><span lang="EN-GB" style="font-size:10pt;color:rgb(102,102,102)"><font face="verdana, sans-serif"><b><br></b>Kronprinsessegade 54<br>DK-1306 Copenhagen K<br>Mobile: +45 26 16 40 23<br>Ph.: +45 33 36 46 60<br>Fax: +45 33 36 46 61</font></span></p></div></span></div>
</div></div>