Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About knowramphp

  • Rank
  1. knowramphp

    sleeping a REST call

    I am using curl to work with a REST API which is working great to perform the calls however there are times that based on server load on the far end I get a response to my rest call asking to try again in 200+ seconds. simply putting a sleep() step in to wait doesn't seem like the best option as the over all script stops and then often times times out. is there a way to offload the retry to a different script and schedule it to run in x seconds with php?
  2. I am having trouble getting a Curl script to work for a GET request. if I use the following as the URL everything works. curl_setopt($ch, CURLOPT_URL, ''); However if I try and add a query to filter out the results I get an error 505. Is there anything different I have to do to get CURLOPT_URL to format correctly when using the brackets and spaces? curl_setopt($ch, CURLOPT_URL, ' startswith +1214820)'); Thanks in advance.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.