OriginalDavid Posted March 25, 2009 Share Posted March 25, 2009 I'm trying to make a short script that does something with a URL. so I want the URL to be called like this: http://mydomain.com/script.php?url=http://www.domainname.com/test and then in the script.php I have $url=$_GET=["url"]; The problem is, when I call script.php with the url in it, it brings up a 403 forbidden error. I think it's because it has forward slashes in it. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/151128-url-in-get-request/ Share on other sites More sharing options...
Maq Posted March 25, 2009 Share Posted March 25, 2009 Try using urlencode() on it, if that doesn't work then you have to use rawurlencode(). Quote Link to comment https://forums.phpfreaks.com/topic/151128-url-in-get-request/#findComment-793917 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.