doulian5857 2015-08-17 17:09
浏览 27

PHP - 使用经过身份验证的请求创建API

I've created a simple PHP restful API like:

Register

api?action=register&username=xcodeWarrier&email=test@gmail.com&password=abc

To post content

api?action=postContent&content=123&username=xcodeWarrier

How do I protect the postContent API call to prevent anyone posting content as xcodeWarrier.

  • 写回答

0条回答 默认 最新

    报告相同问题?