duangekui7451 2012-10-16 09:15 采纳率: 0%
浏览 133
已采纳

oauth错误:(无法连接到服务器)在oauth getRequestToken方法中

I asked this question once time in https://stackoverflow.com/questions/12814603/ but i do not know why my question closed!

I found my answer and i would like to share it, now.

Question

I have a script to send invitation email to web-mail services.

But now, I get error without any change to the code. When I run script, the browser status bar shown "Waiting for domain.com"

And after several seconds I give following error in oauth->getRequestToken:

making the request failed (Couldn't connect to server)

I want to know why this error occur or what are the reasons to happen this error? Dose it related to firewall (csf) settings (e.g. Blocked port and etc.)?

NOTE: I do not any change in my code when it works or now.

PHP 5.2.17 CentOS 6.2 oauth last released

  • 写回答

1条回答 默认 最新

  • dongqiao1888 2012-10-16 09:15
    关注

    In my question I said i am using csf firewall and asked Dose it related to firewall (csf) settings (e.g. Blocked port and etc.)?

    My csf firewall was blocked Google and Yahoo IPs.

    The problem solved after i added Yahoo and Google IPs to Allow IPs in csf firewall setting.

    Just put following IPs:

    173.194.0.0/16 # Google
    77.0.0.0/8 # Yahoo
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘