PHP Curl Accept-Encoding: gzip solve garbage problem

In using php curl docking hugegraph, the distortion results are returned to the transmission found Gremlin, shots are as follows:

 

 

 

Found garbled distortion return request has Accept-Encoding: gzip, i.e., the returned content using gzip compression, it is necessary to add in the curl request

curl_setopt($curl, CURLOPT_ENCODING, 'gzip');

That return to normal.

Guess you like

Origin www.cnblogs.com/hejianrong/p/11512645.html