V
V
Vitaly2018-09-21 21:10:32
PHP
Vitaly, 2018-09-21 21:10:32

OAth 1.0 Curl param?

Goodnight. Help me figure it out. There is a call to the server through curl

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "http://keyweb24.com/nchpc/wp-json/wc/v2/orders",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET"
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

But i need auth when i run this via postman i can enter auth details https://monosnap.com/file/YusyFSGfYf0uhVxwLOCLBpfX...
but how do i enter the same details in curl request

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Ainur Valiev, 2018-09-23
@vaajnur

screen is not working

V
Vladimir Martyanov, 2015-04-27
@vilgeforce

Start with an assembler tutorial like Zubkov's.
PS. Before asm, read something about the design of microprocessor systems. Then on programming languages.

P
Psionic, 2015-05-08
@Psionic

Oh my God, what's the question - you take the image of the firmware, you feed it to a program written in C for the evening and it will give you a binary representation of the program byte by byte. Only in my opinion you are going the wrong way and asking the wrong questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question