Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    19

    Default SOAP or file_get_contents of https page fails

    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.
    Last edited by jvanv8; 06-13-2007 at 02:48 PM.

  2. #2
    Member
    Join Date
    Nov 2006
    Posts
    19

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Authenticating fails on VPS/https
    By edynas in forum cPanel Developers
    Replies: 4
    Last Post: 04-26-2010, 02:09 AM
  2. How to set up a page to be https (ssl)
    By MZmuda in forum Database Discussions
    Replies: 3
    Last Post: 06-16-2008, 07:55 AM
  3. Secure Page (https) cannot be open
    By MakassarNET in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 04-05-2006, 12:31 AM
  4. PHP 5 with SOAP (how to ./configure --enable-soap)
    By jfxberns in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-03-2004, 05:52 PM
  5. SquirrelMail : works on http and fails on https
    By mitul in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-03-2003, 03:04 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube