0

How to read the file content from the curl, Response are in the excel and tsv file content. But try to run from the POSTMAN it's return some output

        PKO'Qd��(�M$_rels/.rels BL�굄�BL�굄�BL�굄���Mj1F�b��h�B)%N6��])�T[���X�V���5]��I����
���i4_�r/�²��pp���Zx?
        �,��d��i��N�a�Y��HZ�䮏�F�:����]��J"��i$M��Z��jWu���/�L����/
    �N��͖����}N��

But try to run the code from the curl it's showing blank curl code which is using for getting response

        $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL,$reporturl);

        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");

        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 

        curl_setopt($ch, CURLOPT_HTTPHEADER, $this->trade_auth());

        $result = (curl_exec($ch));

Please help to read the file using the curl

jyoti gautam
  • 29
  • 1
  • 1
  • 4

0 Answers0