如何使用REST进行身份验证? [英] How to Authenticate using REST?
本文介绍了如何使用REST进行身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到有REST模板可用,但有谁知道如何在标题中包含身份验证? 我正在使用PHP。
解决方案
您可以使用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!
这篇关于如何使用REST进行身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文