Okay, here's a puzzle worthy of Sherlock Holmes.
There's an API I am working with in PHP by fetching the contents of a GET request using file_get_conten ts($url), where $url is the API request.
Here are the facts of what is and isn't working for me.
1. The main problem (and reason I am asking this question) is that I get a timeout on the file_get_conten ts
2. However, when I run the API call in the browser, it's working fine and I get a valid response (ie, I know the API is up)
3. When I use file_get_conten ts on any other site, I get a valid response.
4. When I use file_get_conten ts to call the API from another server altogether, it works fine.
Which leads me to believe that there is something about the interaction of the original server and the API provider that is causing a problem. But what? ALSO, this worked fine up until a week ago, making this even more confusing.
Any other ideas?
PS: I tried CURL and I get the same responses in all situations.
There's an API I am working with in PHP by fetching the contents of a GET request using file_get_conten ts($url), where $url is the API request.
Here are the facts of what is and isn't working for me.
1. The main problem (and reason I am asking this question) is that I get a timeout on the file_get_conten ts
2. However, when I run the API call in the browser, it's working fine and I get a valid response (ie, I know the API is up)
3. When I use file_get_conten ts on any other site, I get a valid response.
4. When I use file_get_conten ts to call the API from another server altogether, it works fine.
Which leads me to believe that there is something about the interaction of the original server and the API provider that is causing a problem. But what? ALSO, this worked fine up until a week ago, making this even more confusing.
Any other ideas?
PS: I tried CURL and I get the same responses in all situations.
Comment