久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      如何解決php gzip 亂碼問題

      php gzip亂碼是因為返回的內(nèi)容采用了gzip壓縮,其解決辦法就是在curl請求中加入“curl_setopt($curl, CURLOPT_ENCODING, 'gzip');”即可。

      如何解決php gzip 亂碼問題

      推薦:《PHP視頻教程》

      PHP Curl Content-Encoding: gzip亂碼問題解決

      筆者在使用php curl對接hugegraph的過程中,發(fā)現(xiàn)向gremlin發(fā)送結(jié)果返回亂碼,截圖如下:

      對比這個請求和普通的請求:

      發(fā)現(xiàn)返回亂碼的亂碼請求中有Content-Encoding: gzip,即返回的內(nèi)容采用了gzip壓縮,所以需要在curl請求中加入

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

      即返回正常。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號