Is there a way to match a string/regex in HTTP POST only?
3 Answers, 1 is accepted
0
Eric Lawrence
Telerik team
answered on 01 Dec 2014, 04:46 PM
It's not really clear what you're asking.
If you're asking how to search a POST body in FiddlerScript, you'd do something like
if (oSession.HTTPMethodIs("POST"))
{
if (oSession.utilFindInRequest("Bunnies", false)>-1) { oSession["ui-bold"] = "had bunnies (case insensitive)"; }
}
Regards,
Eric Lawrence
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Sorry I didn't make it very clear.
Yes, I was trying to make different responses in AutoResponder based on the pattern in POST body. .
I am wondering whether I can do it in the AutoResponder UI or I have to use Fiddler script?
0
Accepted
Eric Lawrence
Telerik team
answered on 02 Dec 2014, 11:42 PM
Ah, for that, use the URLWithBody prefix. See http://stackoverflow.com/a/22643781/126229 for syntax and examples.
Regards,
Eric Lawrence
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.