#81 http redirect to https (port problem)...

None
closed-fixed
None
5
2015-05-31
2012-09-06
rchilro
No

Hi there,
Just to let you know that i found that:
- when you access a site in http without indicating the port (ex.: http://sourceforge.net/blablabla\);
- if the site redirects to https, the generated link in _httpsrequest has a :80 (ex.: https://sourceforge.net:80\) which returns an "invalid request".

to remedy this situation i forced in the beguining of the function the port to 443. it works for me but this doesn't work for the general cases

If you need more details i can try to give you the headers in transit.
thanks in advance.

Discussion

  • 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("http://accounts.google.com/");
    print_r($Snoopy);
    ?>
    

    You can get the new version of Snoopy 2.0.0 here

     
  • Gene Wood

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

Log in to post a comment.