cURL - problems with data download TRTH V2 Rest API

ksm1234
ksm1234 Newcomer

I have problem with data download via cURL. However, when I post the link below to Chrome I get the results. Token is correct.

qas #
curl -H "Content-Type: application/json" -H "Authorization:Token
$token" -X GET "https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/RawExtractionResults('0x06xxxx2')/\$value"
-x proxy.xx.xx.pl:80 -k

▒▒▒

@▒▒>▒B▒F▒Y▒Ƞ▒iD)▒.ݖ\c▒/ԋo_▒▒▒ea▒=|▒▒▒*9▒▒Fu▒Vg▒-S?▒▒1j*ej▒T▒▒▒TNq▒.y▒▒▒▒!,▒N▒▒ɦ,▒

▒xK▒▒j

▒f8▒▒▒▒"CBɂf▒▒▒<▒%c▒▒▒f▒uߪL

▒▒Лz▒"▒▒ޢ=$▒P▒{▒r▒n▒7▒s

Best Answer

  • Hi @ksm1234

    The result of ExtractRaw should be in gzip compression format and cannot display to console directly. You need to redirect output to a gzip file via the "-o <filename.gz>" option ,and then use other tools such as gunzip command to decompress the file.

Answers