elad2109 Posted February 27, 2011 Share Posted February 27, 2011 Hello every1. 2) I want to use htaccess for the following manipulation: when current url = POST: http://www.myDomain.com/ HTTP_REFERER = //www.myDomain.com/3 {Param2= x (some const value)} will be hiddenly converted to POST (not GET!) http://www.myDomain.com/Myservice.asmx/Foo {Param1 = 3, Param2= x (stays the same as before manipulation)} If that cannot be done, I would like to do the following (using any apache trick) 1. Change the request method from POST to GET 2. take to POST variables and concatenate to GET url or any creative idea that achieves the same. Thaks for any assistant Quote Link to comment https://forums.phpfreaks.com/topic/229054-htaccess-request_method-post/ Share on other sites More sharing options...
requinix Posted February 27, 2011 Share Posted February 27, 2011 "every1"? "hiddenly"? The first method isn't really possible. The second method is a bad idea (if possible). You can do $_GET[Param1] = 3 and $_POST[Param2] = x. How's that? Quote Link to comment https://forums.phpfreaks.com/topic/229054-htaccess-request_method-post/#findComment-1180556 Share on other sites More sharing options...
elad2109 Posted February 28, 2011 Author Share Posted February 28, 2011 I don't have client side code. No access to the website code. or did I misunderstood your solution ? Quote Link to comment https://forums.phpfreaks.com/topic/229054-htaccess-request_method-post/#findComment-1180685 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.