Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can not get file contents on HTTPS

Comments in 'Plugin Development' started by Dinokiller, Apr 16, 2014.

  1. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    Some people may know I have made a plugin called SocialSign. Currently I'm trying to implement Twitter support. To get the follower count of a Twitter account it requires doing file_get_contents() on https://cdn.api.twitter.com/1/users/lookup.json?screen_name=<username> . Now my problem is that this is on HTTPS protocol and PocketMine-MP doesn't seem to support this because it has no OpenSSL extension.
  2. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,707
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Utils::curl_get("url");
    applqpak, PEMapModder and Dinokiller like this.
  3. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    Thank you very much good sir!
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What is it in the current PocketMine-MP version? Is it Utils::getURL()?
  5. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    Yes

Share This Page

Advertisement