LoginSignup
10
8

More than 5 years have passed since last update.

PHPのcurl(cURL)でレスポンスが文字化けするときに確認することメモ

Posted at

レスポンスがgzipで圧縮されているのが原因

送信時にCURLOPT_ENCODINGオプションを指定しておくこと

curl_setopt($ch, CURLOPT_ENCODING, "gzip");

10
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
8