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,768
    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
    71
    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
    50
    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,768
    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
    71
    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
    48
    I am pretty sure you didnt make 301 redirect properly, that must be the case.

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

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.29429 seconds
  • Memory Usage 2,922KB
  • Queries Executed 14 (?)
More Information
Template Usage (35):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (2)bbcode_code
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (8)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (71):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates