www.webdeveloper.com
Results 1 to 3 of 3

Thread: fopen(https://***) failed to open stream: HTTP request failed! in C:\___\ping.php

  1. #1
    Join Date
    Jul 2012
    Posts
    41

    fopen(https://***) failed to open stream: HTTP request failed! in C:\___\ping.php

    Im sending an sms using the url. The url itself is good if i directly copy it from the warning an open it myself it does send the sms properly but throws out an error when im trying to fopen it. Url is https.

    PHP Code:
    fopen$url,"r"); 

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,334
    My guess is that you'll have more success using the cURL functions, as you can then add settings for HTTPS connections. You'll probably need to include this setting:
    PHP Code:
    curl_setopt($curlCURLOPT_SSL_VERIFYPEERfalse); 
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Jul 2012
    Posts
    41
    PHP Code:
    fopen$url,"r"); 
    Worked, i had an empty space " " in url, fixed that and all worked.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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