Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOAP or file_get_contents of https page fails

Discussion in 'General Discussion' started by jvanv8, Jun 13, 2007.

  1. jvanv8

    jvanv8 Member

    Joined:
    Nov 10, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    151
    I have a script that needs to connect via soap to a secure webservice address.
    Worked great... until yesterday (server was not rebooted)

    Now I get an error:
    Code:
    Request for file (https://[edited out]) was invalid, HTTP code: 0
    Couldn't resolve host '[edited out]'
    If I try to grab the contents of a page with the php function file_get_contents I get this error:
    Code:
    Warning: file_get_contents() [function.file-get-contents]: 
    php_network_getaddresses: getaddrinfo failed: 
    Name or service not known in /home/mysite/public_html/test.php on line 9
    
    Warning: file_get_contents(https://any.secure.website.you.want) 
    [function.file-get-contents]: failed to open stream: 
    Permission denied in /home/mysite/public_html/test.php on line 9
    
    I don't know if this means anything but somewhere else I heard a mention of OpenSSL... I have OpenSSL and it's running:
    OpenSSL support enabled
    OpenSSL Version OpenSSL 0.9.8b 04 May 2006
    PHP version is 5.2.0

    Is this a firewall issue?? file_get_contents works fine on non https addresses.
    Server is dedicated so I have access to just about everything.
     
    #1 jvanv8, Jun 13, 2007
    Last edited: Jun 13, 2007
  2. jvanv8

    jvanv8 Member

    Joined:
    Nov 10, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    151
    This is still a problem.

    Actually I discovered that it isn't associated with https sites.
    file_get_contents('http://www.yahoo.com');
    works but
    file_get_contents('http://www.google.com');
    does not

    very very strange.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice