U
U
up72020-02-01 09:16:15
PHP
up7, 2020-02-01 09:16:15

What data encoding kryakozyabr?

I send a PHP request with a curl and this is how I get the PKIAP response

api3_5707.csvPKPKIAP api3_5707.csvPK;=

Online decoders did not help. There should be a name (file path)

5e351814f132b534043553.png

Code:

$ch = curl_init();
$fields_string = '{"order_id":"761BEEC3-B0AE-4D6F-B5F6-B0005F01F28B"}';
$XClientSign = hash('sha256', 'ключ');

$headers = [
'Content-Type: application/json; charset=utf-8'
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_URL, 'адрес');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
$out = curl_exec($ch);
curl_close($ch);
file_put_contents('111.csv', $out);

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2020-02-01
@up7

This is ZIP. Need to unpack

A
Arthur, 2020-02-01
@ar2rsoft

You can still not send the Accept-Encoding header and the content will come without compression. Kurl sees him framing him herself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question