Php 脚本上出现错误H12(请求超时),但浏览器上没有

Php 脚本上出现错误H12(请求超时),但浏览器上没有,php,ruby-on-rails,heroku,libcurl,Php,Ruby On Rails,Heroku,Libcurl,我有一个调用RubyonRails web服务器的php脚本。这个web服务器是一个api服务器,我将从php脚本中调用它 我已经创建了一个测试路由/api/test,看看我的脚本能否成功调用我的api服务器 在开发方面,一切正常,没有发现任何问题。但是今天,当我把它上传到heroku时,我得到了错误H12(请求超时) 所以我在浏览器上打开了相同的url。在浏览器中,我看不到任何错误,页面已按应有的方式加载 我的php脚本如下所示: $ch = curl_init($url); cur

我有一个调用RubyonRails web服务器的php脚本。这个web服务器是一个api服务器,我将从php脚本中调用它

我已经创建了一个测试路由
/api/test
,看看我的脚本能否成功调用我的api服务器

在开发方面,一切正常,没有发现任何问题。但是今天,当我把它上传到heroku时,我得到了错误H12(请求超时)

所以我在浏览器上打开了相同的url。在浏览器中,我看不到任何错误,页面已按应有的方式加载

我的php脚本如下所示:

    $ch = curl_init($url);

curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $http_method); // GET, POST, PUT and DELETE, one at the time
curl_setopt($ch, CURLOPT_HTTPHEADER, $header_fields);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

return $response;
这是错误日志,顺便说一下,有时候GET请求甚至没有显示为错误或成功:

2012-08-23T13:28:07+00:00 heroku[router]: Error H12 (Request timeout) -> POST *.herokuapp.com/api/test dyno=web.1 queue= wait= service=30000ms status=503 bytes=0
2012-08-23T13:28:08+00:00 heroku[router]: Error H12 (Request timeout) -> PUT *.herokuapp.com/api/test dyno=web.1 queue= wait= service=30000ms status=503 bytes=0
2012-08-23T13:28:09+00:00 heroku[router]: Error H12 (Request timeout) -> DELETE *.herokuapp.com/api/test dyno=web.1 queue= wait= service=30000ms status=503 bytes=0
有时,这4个请求中的一个会返回一些东西,但却像是意外地返回

有人能帮我吗?我真的需要这个脚本工作

找到了问题

这是我公司的防火墙

不知道在哪里,但一旦我的机器清除了限制,它现在就可以工作了