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

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,215
    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
    14
    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
    9
    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
    Apr 2017
    Posts
    54
    Well surprise, surprise, UI Man registers another fake name. site-developer=uiman=uniqueideaman=forumcoder. Not surprised since you made such a bad name for yourself on multiple forums.

  6. #6
    Join Date
    Oct 2017
    Posts
    9
    Quote Originally Posted by benanamen View Post
    Well surprise, surprise, UI Man registers another fake name. site-developer=uiman=uniqueideaman=forumcoder. Not surprised since you made such a bad name for yourself on multiple forums.
    Nah! I haven't made any bad name here. On another forum, I am safe too. You go out there and try finding me on that one too. Lol!
    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.
    So, TF from codingforums has wisened you up to spot me with other Usernames. Has he ?
    Anyway, how are you and your family doing this time round in Australia ? I saw you the other day with your family and pets and gave you a message. But Requinix (mod) deleted it.
    Nevermind.
    Last edited by site-developer; Yesterday at 07:35 PM.

  7. #7
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    5,215
    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...

  8. #8
    Join Date
    Oct 2017
    Location
    Lithuania
    Posts
    14
    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

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

  10. #10
    Join Date
    Apr 2017
    Posts
    54
    Quote Originally Posted by \\.\ View Post
    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.
    That is pretty much the rule on any forum. OP now has at least FOUR usernames that he parades under. One of which he spent numerous posts trying to convince everyone it was not him. After NUMEROUS warnings from forum members and ADMINS he was banned (for the second time) for his multiple antics from codingforums.

    OP, we are not your friends or your drinking buddies. Many of us are professional business people that volunteer our time to help people. Your pet names and silly comments of seeing someone and there family are far from appreciated. I for one take great offense that you waste the time of so many people on multiple forums for the same question and then forum hop naming names saying so and so on this other forum said this and that. Keep it up and you will end up banned from all the forums.

Thread Information

Users Browsing this Thread

There are currently 10 users browsing this thread. (0 members and 10 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



Recent Articles