AnnePel Posted December 12, 2013 Share Posted December 12, 2013 Hi: I'm not a php programmer but I'm slowly learning out of necessity. I am sending several parameters to my index.php and everything works well until I try to send a URL. Then I get a 403 error. I am on Hostgator and their support wasn't helpful because the guy I chatted with didn't know php. Here is an example of the URL that I am using... http://00001.example.info/index.php?Property_Address=exampleaddress&Mobile_Listing_URL=http://www.exampleurl.com/ Hopefully there is a simple solution. Thanks in advance. Anne Quote Link to comment https://forums.phpfreaks.com/topic/284727-sending-a-url-in-my-parameter-list/ Share on other sites More sharing options...
PravinS Posted December 12, 2013 Share Posted December 12, 2013 try using urlencode() and urldecode() php functions Quote Link to comment https://forums.phpfreaks.com/topic/284727-sending-a-url-in-my-parameter-list/#findComment-1462167 Share on other sites More sharing options...
AnnePel Posted December 13, 2013 Author Share Posted December 13, 2013 Hi: I found out that using http:// in the php for the url causes the 403 error. I coded without http:// and it worked. Thanks for your help, Anne Quote Link to comment https://forums.phpfreaks.com/topic/284727-sending-a-url-in-my-parameter-list/#findComment-1462269 Share on other sites More sharing options...
requinix Posted December 13, 2013 Share Posted December 13, 2013 There's a good chance they have something like mod_security (for Apache) installed. One of the things it can do is 403 a request if it contains something that looks bad, like "http://" in the URL. Assuming you can use .htaccess files you could actually disable that particular rule, but simply removing the "http://" is a perfectly reasonable solution since it's implied anyways. Quote Link to comment https://forums.phpfreaks.com/topic/284727-sending-a-url-in-my-parameter-list/#findComment-1462291 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.