RewriteCond filter Query String of Post
6 posts
• Page 1 of 1
RewriteCond filter Query String of Post
Hi,
I know a little about rewrite_mod. I m trying to filter a specific query string from my post and I dont know how.
I got this website /mapviewer/foi and i can track severals post using firebug. The ones that has (MA_VGV) i need to filter.
(*)But i only have success if I directly informe in my browser the URL, like /mapviewer/foi?XXXXXXXX.MA_VGV.
There is some way that REQUEST_STRING read the POST?
(*)
RewriteCond %{QUERY_STRING} (MA_VGV)
RewriteRule ^/mapviewer/foi$ http://other_IP/mapviewer/foi$1 [P]
I know a little about rewrite_mod. I m trying to filter a specific query string from my post and I dont know how.
I got this website /mapviewer/foi and i can track severals post using firebug. The ones that has (MA_VGV) i need to filter.
(*)But i only have success if I directly informe in my browser the URL, like /mapviewer/foi?XXXXXXXX.MA_VGV.
There is some way that REQUEST_STRING read the POST?
(*)
RewriteCond %{QUERY_STRING} (MA_VGV)
RewriteRule ^/mapviewer/foi$ http://other_IP/mapviewer/foi$1 [P]
Re: RewriteCond filter Query String of Post
Hello,
I'm sorry but your explanation is not very clear. Could you please give some specific example of the URL you need to catch and process and how you want it to be processed.
I'm sorry but your explanation is not very clear. Could you please give some specific example of the URL you need to catch and process and how you want it to be processed.
Re: RewriteCond filter Query String of Post
Hi,
I need to get that MA_VGV from that post. I doubt is how I do it using mod_rewrite. Can I do this with mod_rewrite or I have to use some other thing?
(EDIT)
I need to redirect this kind of POST.
if MA_VGV go to x
else go to y
I need to get that MA_VGV from that post. I doubt is how I do it using mod_rewrite. Can I do this with mod_rewrite or I have to use some other thing?
(EDIT)
I need to redirect this kind of POST.
if MA_VGV go to x
else go to y
Re: RewriteCond filter Query String of Post
There is a variable of SecRule for get/read the SOURCE of POST? (I dont know if this I can call postpayload).
Re: RewriteCond filter Query String of Post
Hello,
Unfortunately, ISAPI_Rewrite is not capable of retrieving a variable form the POST body. Please try to find another tool for that.
Unfortunately, ISAPI_Rewrite is not capable of retrieving a variable form the POST body. Please try to find another tool for that.
Re: RewriteCond filter Query String of Post
HI Anton,
Thanks!
I gave up of trying, now you confirm that . I used a custom header in my code, TRATAR_DATA = True or False, then if it is true will be a redirect request do an onther http server.
RewriteCond %{HTTP:TRATAR_DATA} ^TRUE$
RewriteRule ^/url/site$ http://xxx.xxx.xxx.xxx/url/site$1 [P]
Thanks!
I gave up of trying, now you confirm that . I used a custom header in my code, TRATAR_DATA = True or False, then if it is true will be a redirect request do an onther http server.
RewriteCond %{HTTP:TRATAR_DATA} ^TRUE$
RewriteRule ^/url/site$ http://xxx.xxx.xxx.xxx/url/site$1 [P]
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests