#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    28
    Rep Power
    0

    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
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,749
    Rep Power
    9397
    Try using cURL so you can get more detailed information about what's happening. And plus, it might work.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    28
    Rep Power
    0
    There was an empty space in the url, the strange thing is that it worked when i manually pasted it.
    Fixed what never was broken.
  6. #4
  7. Mad Scientist
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Oct 2007
    Location
    North Yorkshire, UK
    Posts
    3,660
    Rep Power
    4123
    when you manually paste a url into a browser, the browser automatically converts things like spaces into their URL encoded entities.

    PHP does not do this - you must make sure the URL is valid, or code up conversions to make it so...look at [PHPNET="urlencode"]urlencode[/PHPNET] for more information
    I said I didn't like ORM!!! <?php $this->model->update($this->request->resources[0])->set($this->request->getData())->getData('count'); ?>

    PDO vs mysql_* functions: Find a Migration Guide Here

    [ Xeneco - T'interweb Development ] - [ Are you a Help Vampire? ] - [ Read The manual! ] - [ W3 methods - GET, POST, etc ] - [ Web Design Hell ]

IMN logo majestic logo threadwatch logo seochat tools logo