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? 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. 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! Link to comment https://forums.phpfreaks.com/topic/280254-crossdomain-posting/#findComment-1441123 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.