I send the request to the statistics for getting the statistics, but the wardamp returns an empty string. When I look at the content type, it writes that the text \ csv. Technical support also says that we will send you an answer in the body of a reply response. Tell me what to do to see this answer (or write it to the database or file).

$ch = curl_init($url_stat); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $response_stat = curl_exec($ch); curl_close($ch); echo "<pre>"; var_dump($response_stat); echo "</pre>"; 
  • This is what the header sends string 'HTTP/1.1 200 OK Server: openresty Date: Thu, 01 Dec 2016 13:25:27 GMT Content-Type: text/csv Transfer-Encoding: chunked ' (length=127) - ASYOU
  • 2
    Why do you look in $curl_getinfo (not mentioned in this code), then how curl_exec save the result of curl_exec in $response_stat ? - Shallow
  • Sori left just from viewing in fact there is exactly $response_stat - ASYOU
  • var_dump how long does the text report? Try to play through the console curl - Small
  • In such cases, I always run wireshark / tcpdump and see what it actually runs. - KoVadim

0