Curl error: Resolving timed out after 1000 milliseconds