<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_ym19_1_1463535748086_5290">Lorne,</div><div id="yui_3_16_0_ym19_1_1463535748086_5590" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463535748086_5592" dir="ltr">> So how can I get stunnel to send the proper Request Header (host: test.authorize.net), make sure it's using http/1.1, etc?</div><div id="yui_3_16_0_ym19_1_1463535748086_5330" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1463535748086_5313" dir="ltr">Sorry. You can't. AFAIK stunnel have no support for user defined Headers. However, If you're not using a conventional web browser, you can modify the requests and insert any needed headers. You can do that with a library like libcurl.<br id="yui_3_16_0_ym19_1_1463535748086_5297">
</div><div id="yui_3_16_0_ym19_1_1463535748086_5289" class="qtdSeparateBR"><div id="yui_3_16_0_ym19_1_1463535748086_5638"><br></div><div id="yui_3_16_0_ym19_1_1463535748086_5636" dir="ltr">regards,</div><div id="yui_3_16_0_ym19_1_1463535748086_5622" dir="ltr">Jose<br></div><br></div><div style="display: block;" id="yui_3_16_0_ym19_1_1463535748086_5266" class="yahoo_quoted"> <div id="yui_3_16_0_ym19_1_1463535748086_5265" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1463535748086_5264" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_ym19_1_1463535748086_5263" dir="ltr"> <font id="yui_3_16_0_ym19_1_1463535748086_5262" face="Arial" size="2"> <hr id="yui_3_16_0_ym19_1_1463535748086_5293" size="1"> <b><span style="font-weight:bold;">From:</span></b> Lorne Kates <halcyon1234@hotmail.com><br> <b><span style="font-weight: bold;">To:</span></b> "stunnel-users@stunnel.org" <stunnel-users@stunnel.org> <br> <b id="yui_3_16_0_ym19_1_1463535748086_5641"><span id="yui_3_16_0_ym19_1_1463535748086_5640" style="font-weight: bold;">Sent:</span></b> Tuesday, May 17, 2016 3:03 PM<br> <b id="yui_3_16_0_ym19_1_1463535748086_5644"><span id="yui_3_16_0_ym19_1_1463535748086_5643" style="font-weight: bold;">Subject:</span></b> [stunnel-users] Requests to cloud server that requires host header<br> </font> </div> <div id="yui_3_16_0_ym19_1_1463535748086_5267" class="y_msg_container"><br><div id="yiv8331428967">
<style><!--
#yiv8331428967 .yiv8331428967hmmessage P
{
margin:0px;padding:0px;}
#yiv8331428967 body.yiv8331428967hmmessage
{
font-size:12pt;font-family:Calibri;}
--></style>
<div id="yui_3_16_0_ym19_1_1463535748086_5274"><div id="yui_3_16_0_ym19_1_1463535748086_5273" dir="ltr">(related to Akamai message from before-- but I have better troubleshooting information).<br><br>I'm tying to route traffic through stunnel to a "cloud" based-endpoint. That endpoint has a static server name-- test.authorize.net. (This is the dev sandbox for auth.net).<br><br>But if you do an nslookup on test.authorize.net, you'll get back a different servername and IP, because it's so wonderfully "cloud".<br><br>Stunnel apparently tries to connect to the nslookup value. The server rejects the request because it can't route it back to test.authorize.net.<br><br>I've tried adding "delay = yes" and "sni = test.authorize.net", but neither work.<br><br>To see this in action, a simple setup with any accept, then connect to test.authorize.net:443 in client = yes mode.<br><br>This is what a valid response looks like (13 -- give me the darn merchant ID in a POST): https://test.authorize.net/gateway/transact.dll<br><br>This is what you'll get if you try to use stunnel (400 invalid url) : <a rel="nofollow" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="https://23.195.204.150/gateway/transact.dll">https://23.195.204.150/gateway/transact.dll</a><br><br>So how can I get stunnel to send the proper Request Header (host: test.authorize.net), make sure it's using http/1.1, etc?<br> </div></div>
</div><br>_______________________________________________<br>stunnel-users mailing list<br><a ymailto="mailto:stunnel-users@stunnel.org" href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br><a href="https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users" target="_blank">https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users</a><br><br><br></div> </div> </div> </div></div></body></html>