dcsimg
www.webdeveloper.com
Results 1 to 8 of 8

Thread: Why httpS Fails To Load ?

  1. #1
    Join Date
    Oct 2016
    Posts
    152

    Why httpS Fails To Load ?

    Php Gurus!

    This is a php web proxy called Mini Proxy not written by me.
    Why do https pages show blank white when I visit any https pages with the proxy ?
    I reckon the https pages are failing to load. Why do you think that is ?

    You can see the actual code here if you want to see it with line numbers:
    https://github.com/joshdick/miniProx.../miniProxy.php

    Which line of the code should I change to what ?

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    5,415
    Because HTTPS are secure pages, you should only be connecting directly with those sites.

    The S in httpS is for Security, meaning that any connection between you and the server is secure, eg, no proxies.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  3. #3
    Join Date
    Oct 2017
    Location
    Lithuania
    Posts
    45
    Try adding these lines right after curl_init

    PHP Code:
    curl_setopt($chCURLOPT_SSL_VERIFYPEER0);
    curl_setopt($chCURLOPT_SSL_VERIFYHOST0); 

  4. #4
    Join Date
    Oct 2017
    Posts
    25
    Quote Originally Posted by \\.\ View Post
    Because HTTPS are secure pages, you should only be connecting directly with those sites.

    The S in httpS is for Security, meaning that any connection between you and the server is secure, eg, no proxies.
    Don't worry. I know https is SSL.
    Anyway, managed to fix the problem by adding:

    Code:
    // Added Fake Referrer after curl_init as phpmillion suggested it to add it anywhere after it.
      curl_setopt($ch, CURLOPT_REFERER, 'http://www.example.com/1');
    //Following 2 lines make Mini Proxy capable to view httpS pages.
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
    on line 102 after:

    Code:
    $ch = curl_init();

  5. #5
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    5,415
    Quote Originally Posted by site-developer View Post
    ...
    I was forced by this forum to change my password and then I forgot it. Can't login to my account any more. If you have any doubts then ask the Admin to check the logs whether I made any failed login attempts or not. Plus, this forum does not even have a password reminder feature.....
    Utter TOSH, like ALL forums, there is a password recovery system, you just got to use it.

    also, multiple accounts as far as I can remember on here is not allowed.
    --> JavaScript Frameworks like JQuery, Angular, Node <--
    ... and please remember to wrap code with forum BBCode tags:-

    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  6. #6
    Join Date
    Oct 2017
    Location
    Lithuania
    Posts
    45
    Quote Originally Posted by site-developer View Post
    Plus, this forum does not even have a password reminder feature.
    Please correct me if I'm wrong, but I believe this is the password reminder feature - http://www.webdeveloper.com/forum/login.php?do=lostpw

  7. #7
    Join Date
    Feb 2017
    Location
    Harkiv
    Posts
    50
    I am pretty sure you didnt make 301 redirect properly, that must be the case.

  8. #8
    Join Date
    Oct 2017
    Posts
    25
    Quote Originally Posted by phpmillion View Post
    Please correct me if I'm wrong, but I believe this is the password reminder feature - http://www.webdeveloper.com/forum/login.php?do=lostpw
    Scroll-up to the top of this page and you will see the login feature. But, it has no password reminder link there. Where did you find that link ?
    Nevermind. I'm not continuing with my old username. That way, I do not use 2 different usernames at once. I'll stick to this one. And forget the other one.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center