Jump to content

url in get request


OriginalDavid

Recommended Posts

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?

 

 

Link to comment
https://forums.phpfreaks.com/topic/151128-url-in-get-request/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.