【发布时间】:2019-04-04 07:20:42
【问题描述】:
这是我的 test_b.php 文件:
if(isset($_POST['username'])){
$url = 'http://my_url/test_b.php';
$x = get_headers($url, 1);
print_r($x);
}
我想在 [Content-Type] 之后的标头中添加另一个参数,例如 [Authkey]
我是 API 开发的新手。任何人都可以帮忙。提前谢谢你。
【问题讨论】:
-
在图片中覆盖您的 URL,然后将其发布到您的代码中,做得很好。到目前为止,您尝试过哪些不起作用的方法?
-
感谢您的告知。我忘了更改网址。哈哈。
-
php中有
header函数。谷歌搜索会告诉你。
标签: php api http-headers postman