Match string in HTTP POST

5 posts, 1 answers
  1. core
    core avatar
    5 posts
    Member since:
    Nov 2014

    Posted 26 Nov 2014 Link to this post

    Hi:

    Is there a way to match a string/regex in HTTP POST  only?
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 01 Dec 2014 Link to this post

    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.

     
  3. core
    core avatar
    5 posts
    Member since:
    Nov 2014

    Posted 01 Dec 2014 in reply to Eric Lawrence Link to this post

    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?

  4. Answer
    Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 02 Dec 2014 Link to this post

    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.

     
  5. core
    core avatar
    5 posts
    Member since:
    Nov 2014

    Posted 02 Dec 2014 in reply to Eric Lawrence Link to this post

    Nice tip. I didn't find that in Fiddler doc somehow.
Back to Top