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

Change information inside packets

4 Answers 601 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 10 Dec 2014, 08:14 PM
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 ?

4 Answers, 1 is accepted

Sort by
0
Eric Lawrence
Telerik team
answered on 11 Dec 2014, 04:57 PM
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.

 
0
Marco
Top achievements
Rank 1
answered on 13 Dec 2014, 07:32 AM
Thank you very much for your help !
Listen, can I add inside packet HTTP this line ? X-Common-idcode : AP354L\r\n
0
Eric Lawrence
Telerik team
answered on 15 Dec 2014, 03:23 PM
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.

 
0
Gene
Top achievements
Rank 1
answered on 25 Feb 2016, 08:09 PM
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.
Tags
Fiddler Classic
Asked by
Marco
Top achievements
Rank 1
Answers by
Eric Lawrence
Telerik team
Marco
Top achievements
Rank 1
Gene
Top achievements
Rank 1
Share this question
or