code working in fiddler,but not working in fiddlercore?

3 posts, 0 answers
  1. poko
    poko avatar
    4 posts
    Member since:
    Aug 2014

    Posted 03 Aug 2014 Link to this post

    code working in fiddler,but not working in fiddlercore?


    //init function
    FiddlerApplication.BeforeResponse += onBeforeResponse;


    //onBeforeResponse
    private static void onBeforeResponse(Session oSession)
    {
            if (oSession.url.IndexOf("/p_manager/")!=-1)
            {
                    oSession.utilDecodeResponse();
                    oSession.utilReplaceOnceInResponse("</body>", "<script>alert(1)</script></body>", false);
                 //this code not working in fiddlercore,but this code in fiddler is working. i think maybe must append some code like
                //oSession["X-ResponseBody"] ,but i do not know how to do that.
                // i read fiddler's CustomRules.js but it not say how to do it.
               // i
               // recently ,in my hometown the google is no access. so i consult you again.
          
            }


  2. poko
    poko avatar
    4 posts
    Member since:
    Aug 2014

    Posted 04 Aug 2014 in reply to poko Link to this post

    I find the answer .

    need this code in onBeforRequest

     static void onBeforeRequest(Session oSession)
      {
                oSession.bBufferResponse = true;
    }

    I bought  you book in  Amazon china. but it in the mail car now. 
    i really looking forward read it.
  3. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 04 Aug 2014 Link to this post

    Hello, Poko--

    Thanks for letting me know that the book is now available in China! The publisher never got back to me.

    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.

     
Back to Top