#57 SSL port not set properly

None
closed-fixed
None
5
2015-05-31
2006-08-08
Anonymous
No

if port is not specified for HTTPS connections, it
defaults to 80, which is causing an error when loading
the URL.

Fix for this, around line 210:

$this->host = $URI_PARTS["host"];
if(!empty($URI_PARTS["port"]))
$this->port = $URI_PARTS["port"];
>>>>>>>>>>>>>>> add this >>>>>>>>>>>>>>>>>>>>
else
$this->port = 443;
>>>>>>>>>>>>>>> end add >>>>>>>>>>>>>>>>>>>>

if($this->_isproxy)

Hope this helps,
Sorin

Discussion

  • aldo06

    aldo06 - 2007-02-13

    Logged In: YES
    user_id=1706399
    Originator: NO

    not at all :)

     
  • Gene Wood

    Gene Wood - 2015-05-31
    • status: open --> closed-fixed
    • assigned_to: Gene Wood
    • Group: -->
     
  • Gene Wood

    Gene Wood - 2015-05-31

    Thanks for the bug report. This issue has been fixed in Snoopy 2.0.0

    The test I used which works in Snoopy 2.0.0 and fails in Snoopy 1.2.5 is

    <?php
    include "Snoopy.class.php";
    $Snoopy = new Snoopy;
    $Snoopy->fetch("https://accounts.google.com/");
    print_r($Snoopy);
    ?>
    

    You can get the new version of Snoopy 2.0.0 here

     

Log in to post a comment.