gpt4 book ai didi

php - PHP 中的 ApacheBench 和 http 请求

转载 作者:太空宇宙 更新时间:2023-11-04 09:53:59 24 4
gpt4 key购买 nike

我有一些脚本,它从请求中获取值:

$body = file_get_contents('php://input');

然后我使用 ApacheBech(ab) util 测试这个脚本。如何在 ApacheBench util 中发送 php://input 的值?提前致谢。

最佳答案

ab -p POST-file(包含要 POST 的数据的文件)

关于php - PHP 中的 ApacheBench 和 http 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7722511/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com