0
$response=$client->request("POST",$url,[

    "body"=>$soap,
    "auth"=>["blabla","blabla"]
    'headers' => [
        'Content-Type' => 'text/xml; charset=UTF8',
    ],

]);

my php code but I want set auth type, how I can set auth type?

Cœur
  • 37,241
  • 25
  • 195
  • 267
dılo sürücü
  • 3,821
  • 1
  • 26
  • 28

1 Answers1

0

The authentication type can be passed as the third item in the "auth" array and can be any of "basic", "digest", "ntlm"

"auth" => ["<user>", "<pwd>", "<auth_type>"]
Oluwafemi Sule
  • 36,144
  • 1
  • 56
  • 81