P
P
Paka2017-08-25 15:55:13
PHP
Paka, 2017-08-25 15:55:13

What is the authorization type called and is it possible to pass it in php?

What is the authorization type called and is it possible to pass it in php?
This is the type of authorization, see screenshot
ccfc0ee67dcc4d5b8361dc13b3c47409.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
vman, 2017-08-25
@Paka

called Basic, you can pass

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$return = curl_exec($ch);

D
D3lphi, 2017-08-25
@D3lphi

Http basic auth.
It has nothing to do with php, as it is implemented at the web server level.
You can log in using curl .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question