vampke Posted July 17, 2013 Share Posted July 17, 2013 Hi people, I am trying to cross domain post an html form. When I post the form on the domain itself (form action="test.php" method="post") and I return echo $_SERVER['REQUEST_METHOD']; it returns "POST" however when I put the very same file on a different domain and post it (form action="http://www.domain.invalid/test.php" method="post") it returns "GET" ! Does anybody understand why? Quote Link to comment https://forums.phpfreaks.com/topic/280254-crossdomain-posting/ Share on other sites More sharing options...
requinix Posted July 17, 2013 Share Posted July 17, 2013 There's probably some sort of redirection happening. Quote Link to comment https://forums.phpfreaks.com/topic/280254-crossdomain-posting/#findComment-1441120 Share on other sites More sharing options...
vampke Posted July 17, 2013 Author Share Posted July 17, 2013 thank you guru! it was a redirect! Quote Link to comment https://forums.phpfreaks.com/topic/280254-crossdomain-posting/#findComment-1441123 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.