I have a form where the user inputs a url in a text input field. For example:
http://www.theguardian.com/world/video/2016/may/20/there-are-no-words-to-describe-how-bad-it-is-india-endures-severe-heatwave-video
I use a javascript function using both encodeURI(url)
and encodeURIComponent(url)
so the string from the form field looks like this when it is posted:
http%3A%2F%2Fwww.theguardian.com%2Fworld%2Fvideo%2F2016%2Fmay%2F20%2Fthere-are-no-words-to-describe-how-bad-it-is-india-endures-severe-heatwave-video
However, my Apache Web Server returns a 403 error when I post the form. If I remove this input from the form, there is no problem.
What else can I do to avoid the error?