Fiddler auto response

10 posts, 0 answers
  1. Val
    Val avatar
    5 posts
    Member since:
    Feb 2014

    Posted 06 Feb 2014 Link to this post

    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
  2. EricLaw
    EricLaw avatar
    67 posts
    Member since:
    Oct 2012

    Posted 06 Feb 2014 in reply to Val Link to this post

    http://docs.telerik.com/fiddler/knowledgebase/autoresponder provides a good introduction to Fiddler's AutoResponder feature.
  3. Val
    Val avatar
    5 posts
    Member since:
    Feb 2014

    Posted 07 Feb 2014 Link to this post

    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
  4. EricLaw
    EricLaw avatar
    67 posts
    Member since:
    Oct 2012

    Posted 07 Feb 2014 in reply to Val Link to this post

    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
  5. Val
    Val avatar
    5 posts
    Member since:
    Feb 2014

    Posted 10 Feb 2014 Link to this post

    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.
  6. EricLaw
    EricLaw avatar
    67 posts
    Member since:
    Oct 2012

    Posted 10 Feb 2014 in reply to Val Link to this post

    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.
  7. Val
    Val avatar
    5 posts
    Member since:
    Feb 2014

    Posted 11 Feb 2014 Link to this post

    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
  8. EricLaw
    EricLaw avatar
    67 posts
    Member since:
    Oct 2012

    Posted 12 Feb 2014 in reply to Val Link to this post

    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).
  9. Val
    Val avatar
    5 posts
    Member since:
    Feb 2014

    Posted 12 Feb 2014 Link to this post

    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
  10. EricLaw
    EricLaw avatar
    67 posts
    Member since:
    Oct 2012

    Posted 12 Feb 2014 in reply to Val Link to this post

    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?
Back to Top