doujiyun8846 2016-07-31 08:30
浏览 59


I have a custom script in php that is intended to receive a webhook from a 3rd party CMS (specifically FLG360), search the source for records that match a given field name in the query string (using $_GET), and return/display the results.

When going to the full URL (including the query string) manually, the query string is read by the script and the correct actions are performed.

However, when sending the webhook from the CMS, it does not seem to be able to find or read the query string.

Here's the part of my script that I expected to be reading and actioning the webhook via simple $_GET requests:

$IDtoSearch = $_GET['company'];
$status = $_GET['status'];

Is pulling data from a webhook via php as simple as performing some $_GET requests? I have confirmation from the CMS support team that the webhook is definitely formatted as a query string.

I have added this to the script, in order to record any existing query string to the server's error log:

//capture the webhook and save to error log
$webhookContent = "";
$webhook = fopen('php://input' , 'rb');
while (!feof($webhook)) {
    $webhookContent .= fread($webhook, 4096);

...which is doing its job. Here's what I find in the logs after firing a webhook from the CMS:


All the information from the CMS record seems to be coming in, just not being read or recognised as a query string by my script.

Here's what I get when manually entering a query string on the URL:

, referer:

Not sure what the ", referer:" part means, or why this error is being logged with the full URL as opposed to the above.

Hope somebody can help with this, I'm tearing my hair out.

Please let me know if you need any additional information.

Many thanks.

  • 写回答

2条回答 默认 最新


      相关推荐 更多相似问题


      • ¥100 微信会员卡如何外接除本用户外的商户从而可以进行优惠支付
      • ¥50 关于github项目下载运行
      • ¥15 苹果手机删除了qq软件,qq文件怎么恢复
      • ¥20 用mips 人力编程排序问题(能在mars按要求运行)
      • ¥15 Verilog小型神经网络(单层反馈神经网络)
      • ¥15 设计一个数字钟,实现时分秒的显示
      • ¥15 Clion使用头文件链接两个cpp
      • ¥15 51单片机无法触发外部中断问题
      • ¥15 基于半监督,无监督的调制识别
      • ¥15 cst求 阵列 rcs 时候 频域 时域求解器 应该怎样设置 才让两者 计算结果 相似 请附图