Is a URL allowed to contain a space?

后端 未结 10 1280
慢半拍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:16

    To answer your question. I would say it's fairly common for applications to replace spaces in values that will be used in URLs. The reason for this is ussually to avoid the more difficult to read percent (URI) encoding that occurs.

    Check out this wikipedia article about Percent-encoding.

提交回复
热议问题