Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここで説明されているように、LWP 機能を使用して gzip でエンコードされたコンテンツを処理しましたが、少なくともテストした 1 つの Web サイトで予期しない結果がランダムに得られる場合があり$response->decoded_contentます$response->content。内部文字セットのデコード ( decoded_content(charset => 'none')) なしでも試してみましたが、結果は同じでした。
$response->decoded_content
$response->content
decoded_content(charset => 'none')
サーバーが応答で Content-Encoding を適切に設定していない可能性がありますか? いずれにせよ、機能している応答と機能していない応答の両方のヘッダーを見て、大きな違いを探してください。