A
A
Alexander null2018-09-04 15:09:05
PHP
Alexander null, 2018-09-04 15:09:05

Curl under Windows cuts response and inserts characters?

I 'm testing the API, I need to send a POST request, and
I use curl, php5.6, windows 7
to get a response, as a result, the response comes with truncated json and additional characters before and after json
eknDkNdVTO6jNEHT7UrCSA.png
At the same time, under linux everything is fine, I tried versions php5.4, 5.5, it did not help
PS: with a different json response, different artifacts are generated, and trimming by length is also not stable, it cuts everything, even short lines, even long ones

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dedalqq, 2018-09-04
@snikes

Something is very similar to Chunked transfer encoding
https://ru.wikipedia.org/wiki/Chunked_transfer_encoding
Apparently, either the answer is a curve, or the client does not process this answer in the same way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question