PHP中的cURL选项-什么是-u [英] cURL options in php - what option is -u
本文介绍了PHP中的cURL选项-什么是-u的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我所引用的参考列出了以下选项:
The reference I have lists an option as:
curl -u 'ExactID:Password'\
这对我来说意味着只使用CURLOPT_USERPWD并使用ExactID:Password格式吗?
Does this mean for me to just use CURLOPT_USERPWD and use the format ExactID:Password?
推荐答案
是的,CLI -u
选项等效于PHP CURLOPT_USERPWD
选项,并且值是相同的。这两个文档中有什么不清楚的地方吗?
Yes, the CLI -u
option is equivalent to the PHP CURLOPT_USERPWD
option, and the value is the same. Is there something unclear in the two documentations?
这篇关于PHP中的cURL选项-什么是-u的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文