How can I stop the browser from url-encoding form values on GET

前端 未结 6 1255
余生分开走
余生分开走 2020-11-29 09:20

I have a form with method=\"get\". In the form I need to pass the URL of a CSS file but it is encoding it to http%3A%2F%2Fwww... etc.

Is t

6条回答
  •  余生分开走
    2020-11-29 10:05

    No, you can't. The encoding is required to make a valid URL.

    Instead, decode the value in your receiving code (what platform are you on anyways, URL decoding is usually done automatically for you)

提交回复
热议问题