Cableguy Expert Licensed User Longtime User Jul 2, 2017 #1 Hi guys, I'm trying to use a filter class to catch an url like "https://www.pg-engineering.net/activation?AHGVLZD987SZHBKANSKHGEY" so I set my filter like: B4X: srvr.AddFilter( "/activation?*", "ActivationFilter", False ) The Issue/limitation is that the "?" nor the "*" are not taken into account... however, if i set it as B4X: srvr.AddFilter( "/activation/*", "ActivationFilter", False ) the wildcard is taken into account... How can I workaround this? (althoug I can live with it)
Hi guys, I'm trying to use a filter class to catch an url like "https://www.pg-engineering.net/activation?AHGVLZD987SZHBKANSKHGEY" so I set my filter like: B4X: srvr.AddFilter( "/activation?*", "ActivationFilter", False ) The Issue/limitation is that the "?" nor the "*" are not taken into account... however, if i set it as B4X: srvr.AddFilter( "/activation/*", "ActivationFilter", False ) the wildcard is taken into account... How can I workaround this? (althoug I can live with it)
Erel B4X founder Staff member Licensed User Longtime User Jul 3, 2017 #2 Have you tried: B4X: srvr.AddFilter( "/activation", "ActivationFilter", False ) ? Upvote 0
Cableguy Expert Licensed User Longtime User Jul 3, 2017 #3 I have, it doesn't work if no last "/" is present Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 3, 2017 #4 You can catch it with /* and then check whether req.RequestURI ends with "activation". Upvote 0