LondonPhantom
LondonPhantom

Reputation: 1897

Identify a POST Request in Fiddler JavaScript

I'm writing custom rules for Fiddler and am wondering how you identify that a request is a POST (ie. not a GET or other type) request in the JavaScript? Neither the session nor the request objects seem to have a property that gives this data.

In other words

static function IsPostRequest(oSession : Session) {

    if (oSession. <-- WHAT GOES HERE????? ) 
            return true;
    return false;

}

Upvotes: 0

Views: 222

Answers (1)

daniels
daniels

Reputation: 19233

Try this:

static function IsPostRequest(oSession : Session) {
    return oSession.HTTPMethodIs("POST"); 
}

Upvotes: 1

Related Questions