小编Rja*_*ack的帖子

隐藏卷曲输出

我正在发出一个 curl 请求,它在控制台中显示一个 html 输出,如下所示

<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/domain/public_html/wp-content/themes/explicit/functions/ajax.php:87) in <b>/home/domain/public_html/wp-content/themes/explicit/functions/ajax.php</b> on line <b>149</b><br />......
Run Code Online (Sandbox Code Playgroud)

等等

我需要在运行 CURL 请求时隐藏这些输出,尝试像这样运行 CURL

curl -s 'http://example.com'
Run Code Online (Sandbox Code Playgroud)

但它仍然显示输出,如何隐藏输出?

谢谢

curl

304
推荐指数
2
解决办法
45万
查看次数

标签 统计

curl ×1