I am not able to create a flow with condition for a question mark sign.
Following I tried:
<Condition>(proxy.pathsuffix ~~ "?var") AND (request.verb = "GET")</Condition>
<Condition>(proxy.pathsuffix ~~ "/?var") AND (request.verb = "GET")</Condition>
<Condition>(proxy.pathsuffix MatchesPath "?var") AND (request.verb = "GET")</Condition>
Nothing worked.
Is there a way to do this? My intention is to do it like wsdl works. You have the url and with a question mark you get the wsdl. For example: http://example.com/service is the service url and http://example.com/service?wsdl provides me the wsdl for it.
(request.querystring = "var") AND (request.verb = "GET")
Above condition works only if querystring exactly equals to ?var , if some one sends request something like ?var=xxxx above condition will fail or even ?var&number=232
I feel below one solves the problem if you would like to send additional arguments… using StartsWith Operator.
<Condition>(request.querystring =| "wsdl") AND (request.verb = "GET")</Condition>