Is a URL allowed to contain a space?

后端 未结 10 1284
慢半拍i
慢半拍i 2020-11-22 04:02

Is a URI (specifically an HTTP URL) allowed to contain one or more space characters? If a URL must be encoded, is + just a commonly followed convention

10条回答
  •  鱼传尺愫
    2020-11-22 04:30

    Yes, the space is usually encoded to "%20" though. Any parameters that pass to a URL should be encoded, simply for safety reasons.

提交回复
热议问题