This is a migrated thread and some comments may be shown as answers.

Match string in HTTP POST

3 Answers 389 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Chun
Top achievements
Rank 1
Chun asked on 27 Nov 2014, 03:00 AM
Hi:

Is there a way to match a string/regex in HTTP POST  only?

3 Answers, 1 is accepted

Sort by
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.

 
0
Chun
Top achievements
Rank 1
answered on 02 Dec 2014, 02:03 AM
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.

 
Tags
Fiddler Classic
Asked by
Chun
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Chun
Top achievements
Rank 1
Share this question
or