CURL returns connection time out

Topic summary

Php cURL requests from a private app are failing with a “connection timed out” exception when fetching Shopify order details via a GET to “/admin/orders.json?name=…&status=any”. Increasing the cURL timeout from the default 30 seconds to 60 or 90 seconds does not resolve the issue. The same code still works when run locally (localhost) against Shopify, suggesting the problem is specific to the hosting environment (DreamHost) rather than the code or Shopify endpoint. The issue started recently (working until the previous day) and is blocking the client from using the app; no resolution is provided yet, and help is requested.

Summarized with AI on February 25. AI used: gpt-5.2.

Hello there,

I have a private app using php to get Order details using Php CURL.

$variantvalue=“/admin/orders.json?name=”.$ordernum.“&status=any”;
$sc=$this->SetCredentials($shop);
$orderdata = $sc->call(‘GET’,$variantvalue);

I am getting CURL exception connection timed out. Curl default time out is set to 30 i changed it to 60, 90 still the same. This code was working up until yesterday. If i try to run same code from my local (localhost) connecting to shopify the CURL work fine. It is an issue from my app hosting server (Dream host).

Due to this my client could not use the app.

Any help appreciated.