Changeset 52c0f76 in github


Ignore:
Timestamp:
Jul 25, 2010 4:09:36 PM (3 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
64fa955
Parents:
2fc4596
Message:

Strip protocol from hostname in HTTP headers (#1486868)

Location:
program/steps/utils
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/steps/utils/spell_googie.inc

    rf4f6291 r52c0f76  
    4747  { 
    4848  $out = "POST $path HTTP/1.0\r\n"; 
    49   $out .= "Host: $host\r\n"; 
     49  $out .= "Host: " . str_replace('ssl://', '', $host) . "\r\n"; 
    5050  $out .= "Content-Length: " . strlen($data) . "\r\n"; 
    5151  $out .= "Content-Type: application/x-www-form-urlencoded\r\n"; 
  • program/steps/utils/spell_html_googie.inc

    r9ed374b r52c0f76  
    3131    if ($fp = fsockopen($host, $port, $errno, $errstr, 30)) { 
    3232        $out = "POST $path HTTP/1.0\r\n"; 
    33         $out .= "Host: $host\r\n"; 
     33        $out .= "Host: " . str_replace('ssl://', '', $host) . "\r\n"; 
    3434        $out .= "Content-Length: " . strlen($data) . "\r\n"; 
    3535        $out .= "Content-Type: application/x-www-form-urlencoded\r\n"; 
Note: See TracChangeset for help on using the changeset viewer.