$response=$client->request("POST",$url,[
"body"=>$soap,
"auth"=>["blabla","blabla"]
'headers' => [
'Content-Type' => 'text/xml; charset=UTF8',
],
]);
我的php代码,但我想设置auth类型,如何设置auth类型?
答案 0 :(得分:0)
authentication type可以作为“ auth”数组中的第三项传递,并且可以是"basic", "digest", "ntlm"
中的任何一个。"auth" => ["<user>", "<pwd>", "<auth_type>"]