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

Fiddler auto response

9 Answers 159 Views
Fiddler Classic
This is a migrated thread and some comments may be shown as answers.
Val
Top achievements
Rank 1
Val asked on 06 Feb 2014, 11:19 AM
Hello everyone,
I would like to ask you a question:
I have Fiddler 2 installed and i would like to know if the folloing thing is possible.
I have a program that makes requests over the internet.
I want to know if i can add the responses to Fiddler and when i am not online fiddler automatically to send back the responses i have given.
I heard it is possible but how?
Thanks

9 Answers, 1 is accepted

Sort by
0
EricLaw
Top achievements
Rank 1
answered on 07 Feb 2014, 05:53 AM
http://docs.telerik.com/fiddler/knowledgebase/autoresponder provides a good introduction to Fiddler's AutoResponder feature.
0
Val
Top achievements
Rank 1
answered on 07 Feb 2014, 09:27 AM
Hello
Thank you for your fast response,
I would like to ask you one more thing.
Is there a way for fiddler to save and use a response.For example a program sends a request and receive the responde.Can fiddler save this response and use it next time when i am not on internet?
Thanks
0
EricLaw
Top achievements
Rank 1
answered on 07 Feb 2014, 06:36 PM
Of course-- that's one of the core features of the AutoResponder.

See 
http://blogs.telerik.com/fiddler/posts/12-11-15/better-repro-playback-with-fiddler
http://blogs.msdn.com/b/askie/archive/2013/01/06/how-to-use-fiddler-autoresponder-to-replay-a-fiddler-trace.aspx
0
Val
Top achievements
Rank 1
answered on 10 Feb 2014, 09:45 AM
Hello,
Thank you for your help.I will give it a try later in the day.I want to ask few questions
1.Can i edit the ZAS file?Because i need to edit the changes of the request and i want to manually change the response key?Is that possible?
2.I am looking for a script that will prevent from accessing parts of a website.
For example
http://sample.sas.com/index.php
http://sample.sas.com/browse.php
So i want to ban just  one of these.If i try to block it ,unfortunatelly it blocks both.
I tried it in HOST file and it still wont work.Does anyone know a script that can help me block part of a website?I would really be greatfull.
Thank you very much.
0
EricLaw
Top achievements
Rank 1
answered on 10 Feb 2014, 08:29 PM
1. You can edit any traffic in Fiddler (hit F2), or in the AutoResponder, right-click the response and choose "Edit response."
2. I'm not sure what you mean when you say "if I try to block it"? You can easily return any response (or block/drop the request entirely) on a per-URL basis.

If you were to try to use the HOSTS file to block traffic, it would block all traffic to that Host.
0
Val
Top achievements
Rank 1
answered on 11 Feb 2014, 10:03 PM
Thanks Eric,
I tried the response future and it is awsome.
There are few problems thought:
1.For example if i have a trafic captured can i edit the request part and send it to website to reciev a responde.I mean that i want to make a request manually from fiddler and not to use my program to make the request.It is because i need to change few digits on the request line.and the program sent only particular data i want to change the data and keep sending it.
2.The Fiddler has a back draw.It doesnt capture numeric tranfic.
For example www.sample.com would be captured but 173.23.43.167 it wont(i assume this program rely on DNS) and some ip addresses dont have names. like on websites.
I tried to track another of my programs and it didnt capture any trafic,but when i used shark it came with loads of traffic.Is there a fix for this issue?
Thanks again
0
EricLaw
Top achievements
Rank 1
answered on 12 Feb 2014, 04:29 PM
Hi, Val. You should probably begin by watching the Fiddler tutorial video and reading the documentation (and/or the Fiddler book) as you will find the answers to your questions there.

1. Yes, you can easily have Fiddler generate traffic using the Composer tab, or by using the "Reissue" commands or by using FiddlerScript.

2. Fiddler has no problem capturing traffic which is targeted to a literal IP address (which you're calling numeric traffic). Fiddler doesn't care whether traffic uses a DNS address or not; it only cares that it gets the traffic. Virtually all HTTP/HTTPS stacks will send their traffic to Fiddler automatically; a few require extra configuration; see http://www.fiddlerbook.com/fiddler/help/hookup.asp. However, Fiddler does NOT capture non-HTTP traffic (e.g. UDP, or TCP/IP protocols other than HTTP/HTTPS/FTP) so if your scenario requires those you won't be able to use Fiddler for that task. (And WireShark probably won't help you either, as it doesn't modify such traffic).
0
Val
Top achievements
Rank 1
answered on 12 Feb 2014, 11:50 PM
Dear Eric,
I am sorry  if i am annoying but the methods you mention do not work.
I have tried the composer and to reissue request and both come with errors.
The problem is that if i paste the get link from fiddler into firefox browser i get a response,but if i try to do it through fiddle i get error response.
I can understand where is the problem.
And i have tried like a said composer editor and reissue all options.
This have to be some kind of malfunctioning.
If you have any idea i am open to suggestions
The only option i can think is when i open the autoresponse and drag the each line and then when i click on each line under it says rule editor.I see i can edit the request line.
Thanks
0
EricLaw
Top achievements
Rank 1
answered on 13 Feb 2014, 12:05 AM
You need to be much more specific than "do not work." Literally hundreds of thousands of people use Fiddler every single week for exactly the purposes I've described here.

If you simply paste a URL into the composer without setting the same headers that the browser sends, the server might reject the request (e.g. because it wants a User-Agent header). Rather than doing that, drag/drop the request sent by Firefox from the Web Sessions list into the Composer and see what headers and body it contained.

Have you watched the tutorial videos yet?
Tags
Fiddler Classic
Asked by
Val
Top achievements
Rank 1
Answers by
EricLaw
Top achievements
Rank 1
Val
Top achievements
Rank 1
Share this question
or