Login   Register  
PHP Classes
elePHPant
Icontem

Apache SNI Fix - no domain resolving [PATCH]

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP HTTP protocol client  >  All threads  >  Apache SNI Fix - no domain resolving [PATCH]  >  (Un) Subscribe thread alerts  
Subject:Apache SNI Fix - no domain resolving [PATCH]
Summary:Added possibility to disable domain resolving
Messages:2
Author:Szymon Lukaszczyk
Date:2011-08-09 11:59:58
Update:2011-08-09 21:13:58
 

  1. Apache SNI Fix - no domain resolving [PATCH]   Reply  
Picture of Szymon Lukaszczyk
Szymon Lukaszczyk
2011-08-09 12:00:09
With some apache servers with SNI on the http_client gets 400 error, because the hostname doesn`t match.

Here is quick fix by disabling the domain resolving and passing the raw domain.

http://pastebin.com/aaQtvArT

usage:
$http->resolve_domain = false;
or:
$arguments["ResolveDomain"] = false;

  2. Re: Apache SNI Fix - no domain resolving [PATCH]   Reply  
Picture of Manuel Lemos
Manuel Lemos
2011-08-09 21:13:58 - In reply to message 1 from Szymon Lukaszczyk
Yes, I already noticed that and the problem was already fixed, but I did not yet upload the fixed version. I will fix it soon. Please hang on. Thank you for reporting.