Change information inside packets

5 posts, 0 answers
  1. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

    Posted 10 Dec 2014 Link to this post

    Hi at all !
    I'm studying Fiddler and I'm trying to know what can I do with it.
    My questions are :

    1. Can I change "User-Agent" value when I receive a particular packet ?
    2. Can I change "Request URI" value when I receive a particular packet ?
    3. In general case, Can I change every field value when I receive a particular packet ?
  2. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 11 Dec 2014 Link to this post

    Hi, Marco--

    The term "packet" is related to TCP/IP, a lower-level protocol, and it's not really related to what you're asking.

    Yes, Fiddler can modify any outbound request body or header, and can modify any inbound response body or header. That's why it's called "Fiddler"-- because it can fiddle with such things.

    You can make modifications manually, using the UI, or via script.

    http://docs.telerik.com/fiddler/KnowledgeBase/FiddlerScript/ModifyRequestOrResponse

    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. Marco
    Marco avatar
    11 posts
    Member since:
    Jun 2012

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

    Thank you very much for your help !
    Listen, can I add inside packet HTTP this line ? X-Common-idcode : AP354L\r\n
  4. Eric Lawrence
    Admin
    Eric Lawrence avatar
    833 posts

    Posted 15 Dec 2014 Link to this post

    I will reiterate that HTTP is not a "packet".

    If you're asking how to add the request header shown below, you can use Fiddler's FILTERS tab, or you can click Rules > Customize Rules, scroll to OnBeforeRequest, and add

       oSession.oRequest.headers["X-Common-idcode"] = "AP345L";

    inside that method.

    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. Gene
    Gene avatar
    3 posts
    Member since:
    Feb 2016

    Posted 25 Feb in reply to Eric Lawrence Link to this post

    Is it possible to see TCP-level information in the standard Fiddler UI?  For example, it would be interesting to see what ephemeral port (unassigned port >1023) my OS has given to a particular HTTP client request.
Back to Top