草庐IT

php - header 中的 AuthKey

所以我的客户需要一个使用PHP的RESTAPI,它根据URL参数的条件提供输出现在基本上需要三个URL,它们已经完成。他们是localhost/newapi/client/-forauthorizinglocalhost/newapi/client//categories/-togetallthecategorieslocalhost/newapi/client//categories/-togetallitemsinacategory将.htaccess用于精美的URL所以现在他要求需要将AuthKey添加到HTTPheader而不是URL。所以AuthKey必须作为header传递