且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用REST进行身份验证?

更新时间:2022-10-15 13:43:38

您可以使用cURL API( http://www.php.net/manual/en/ref.curl.php )或PHP函数stream_context_create:
http://us2.php.net/stream_context_create ,例如。


我希望这有帮助!


I see that there are REST templates available but does anyone know how to include authentication in the header?  I'm using PHP.

You could use the cURL API (http://www.php.net/manual/en/ref.curl.php) or the PHP function stream_context_create: http://us2.php.net/stream_context_create, for example.

I hope this helps!