メインコンテンツまでスキップ

附録 B. 代替手段

Appendix B. Alternatives

🇬🇧 英文原文

There are numerous alternative ways for encoding form data that have been proposed or used in various contexts. For example:

  • application/x-www-form-urlencoded: Simple name-value pairs, widely supported but limited to text
  • JSON-based encoding: Modern and flexible but requires additional processing
  • XML-based encoding: Structured but more verbose
  • Direct binary protocols: Efficient but requires custom implementations

multipart/form-data was chosen as the standard for HTML forms because it:

  • Supports binary file data efficiently
  • Maintains compatibility with email systems
  • Allows multiple files and mixed content types
  • Has widespread implementation support

🇯🇵 日本語訳

さまざまなコンテキストで提案または使用されてきた,フォームデータをエンコードするための多数の代替方法がある。例えば:

  • application/x-www-form-urlencoded: シンプルな名前-値のペア,広くサポートされているがテキストに限定される
  • JSON ベースのエンコーディング: モダンで柔軟だが追加の処理が必要
  • XML ベースのエンコーディング: 構造化されているがより冗長
  • 直接バイナリプロトコル: 効率的だがカスタム実装が必要

multipart/form-data が HTML フォームの標準として選択されたのは,次の理由による:

  • バイナリファイルデータを効率的にサポート
  • 電子メールシステムとの互換性を維持
  • 複数ファイルと混在コンテンツタイプを許可
  • 広範な実装サポートを持つ