fiddler使用技能必备

01 简介

Fiddler是一个http协议调试代理工具,它能够检查电脑和互联网之间的http通讯,设置断点,查看进出fiddler的数据。

02 对移动端抓包

  1. 打开菜单栏中的Tools–Fiddler Options–Connections;勾选”Allow remote computers to connect”后面的复选框,点击”ok”按钮,自行设置协议端口号,默认为:8888。
  2. 确认手机和pc在同一个网段,手机端设置手动代理;

    主机名:fiddler所在的主机ip

    端口号:步骤1中设置的端口号

  3. 启动操作手机即可在fiddler中查看到抓取的http协议数据。

03 Fiddler修改返回数据

通过AutoResponder来改变响应结果:

 

第一步:将想要修改的结果写在text文本里面,如下图:

第二步:进入AutoResponder,如图:

第三步:设置相关信息

这里以访问www.baidu.com返回自定义json字符串为例。

第四步:用浏览器访问百度

在浏览器中得到修改后的内容。

04 Fiddler设置网速

在我们日常测试过程中要对用户的各种环境进行模拟测试,不同的网络环境是必不可少的测试环境,有很多工具都可以做限速,当然fiddler也有这个功能。

  • Fiddler为何能限速?

Fiddler作为一个代理,提供了客户端请求前和服务器响应前的回调接口,我们可以在这些接口中定义逻辑,达到限速的目的。例如:通过客户端请求前来自定义限速逻辑,可以通过延迟发送或者延迟接受数据的时间来限制网络的下载上传速度,从而达到限速的效果。

勾选:Rules → Performances → Simulate Modem Speeds,这个时候网速立刻会慢很多,这是fiddler磨人的限速效果。

Fiddler当然可以自行调节所需要的网速,通过Rules->Customize Rules,找到如下图的这段代码:

这个就是fiddler模拟的网络的上传和下载的延迟;(网速计算方法:设置上传网速为100kbps的网络 1KB/100KBps=0.01s=100ms。)

About the author: tangtao

638 comments to “fiddler使用技能必备”

You can leave a reply or Trackback this post.

  1. Socopa Corretora - 2019年6月24日 at 22:33 Reply

    Terrific work! This is the kind of information that
    are meant to be shared across the internet.
    Shame on Google for not positioning this put up higher!
    Come on over and visit my website . Thank you =)

  2. Nilo Lemos Neto - 2019年6月24日 at 21:42 Reply

    Howdy I am so excited I found your web site, I really found you by
    mistake, while I was browsing on Digg for something else, Nonetheless I am here
    now and would just like to say thank you for a remarkable post
    and a all round entertaining blog (I also love the theme/design), I don’t have time to read through it all at the minute but I have book-marked it and also
    added in your RSS feeds, so when I have time I will be back to read
    more, Please do keep up the excellent work.

  3. Nilo Lemos Neto - 2019年6月24日 at 19:38 Reply

    Way cool! Some extremely valid points! I appreciate you writing
    this post and also the rest of the site is also very good.

  4. Socopa Corretora - 2019年6月24日 at 15:37 Reply

    I will right away take hold of your rss as I can’t find your email subscription hyperlink or e-newsletter service.
    Do you’ve any? Kindly let me recognise so that I
    could subscribe. Thanks.

  5. Maria Elisabeth Bettamio Vivone - 2019年6月24日 at 12:37 Reply

    Wow, this paragraph is good, my sister is analyzing these kinds
    of things, thus I am going to convey her.

  6. GENPOWER ENERGY - 2019年6月24日 at 08:42 Reply

    This web site truly has all the info I needed
    concerning this subject and didn’t know who to ask.

  7. Nilo Lemos Neto - 2019年6月24日 at 07:59 Reply

    Valuable information. Lucky me I discovered your web site by chance, and
    I am stunned why this twist of fate did not happened earlier!
    I bookmarked it.

  8. tinyurl.com - 2019年6月24日 at 04:17 Reply

    And that is an investment risk worth taking.

  9. FranPange - 2019年6月23日 at 19:04 Reply

    Misoprostol En Ligne Canada Cephalexin And Itp Fatty Liver And Keflex [url=http://drugsor.com]where can i order levitra[/url] Plus Tapeworms Tablet Next Day Retin A No Prescription

  10. Maria Elisabeth Bettamio Vivone - 2019年6月23日 at 15:20 Reply

    I do not even know how I ended up here, but I thought
    this post was good. I don’t know who you are but certainly
    you’re going to a famous blogger if you are not already 😉
    Cheers!

  11. Banco Paulista SA - 2019年6月23日 at 10:43 Reply

    I have been exploring for a little bit for any high-quality articles or weblog posts in this kind of house .
    Exploring in Yahoo I eventually stumbled upon this website.
    Reading this information So i am glad to convey that I’ve an incredibly just right uncanny feeling I
    discovered just what I needed. I so much certainly will make sure to don?t forget
    this website and provides it a look regularly.

  12. Maria Elisabeth Bettamio Vivone - 2019年6月23日 at 09:14 Reply

    Please let me know if you’re looking for a article writer for your site.

    You have some really great articles and I believe I would be a good asset.
    If you ever want to take some of the load
    off, I’d really like to write some articles for your blog in exchange for a link
    back to mine. Please shoot me an email if interested. Kudos!

  13. GENPOWER ENERGY - 2019年6月23日 at 02:54 Reply

    Admiring the time and energy you put into your blog and in depth information you provide.
    It’s good to come across a blog every once in a while that isn’t the same old rehashed information. Excellent read!
    I’ve bookmarked your site and I’m adding your RSS feeds to my Google account.

  14. Banco Paulista SA - 2019年6月22日 at 22:32 Reply

    This is a topic that is near to my heart… Best wishes!
    Where are your contact details though?

  15. Nilo Lemos Neto - 2019年6月22日 at 19:45 Reply

    This piece of writing is really a nice one it
    helps new net viewers, who are wishing for blogging.

  16. Linnie - 2019年6月22日 at 18:52 Reply

    Thanks to your interest in Funding Advice.

  17. Nilo Lemos Neto - 2019年6月22日 at 16:27 Reply

    I really like it whenever people get together and share thoughts.
    Great blog, keep it up!

  18. Socopa Corretora - 2019年6月22日 at 15:49 Reply

    Superb post but I was wanting to know if you could write a litte more on this topic?
    I’d be very grateful if you could elaborate a little bit more.

    Many thanks!

  19. Nilo Lemos Neto - 2019年6月22日 at 03:09 Reply

    Thank you for the good writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you!
    By the way, how could we communicate?

  20. Maria Elisabeth Bettamio Vivone - 2019年6月21日 at 17:53 Reply

    Saved as a favorite, I like your site!

  21. tinyurl.com - 2019年6月21日 at 13:32 Reply

    Now it is time to pick your specific investments.

  22. GENPOWER ENERGY - 2019年6月21日 at 02:42 Reply

    It’s very easy to find out any matter on web as compared to
    textbooks, as I found this post at this web site.

  23. Jovita - 2019年6月21日 at 02:38 Reply

    This is true for funding recommendation as effectively.

  24. Banco Paulista SA - 2019年6月21日 at 02:30 Reply

    I believe that is one of the most significant information for me.
    And i am happy studying your article. However wanna remark on few normal issues, The web site style is
    ideal, the articles is in reality excellent
    : D. Excellent task, cheers

  25. Banco Paulista SA - 2019年6月21日 at 00:48 Reply

    Admiring the time and effort you put into your blog and in depth information you provide.
    It’s good to come across a blog every once in a while that isn’t the
    same old rehashed material. Great read! I’ve bookmarked your site
    and I’m adding your RSS feeds to my Google account.

  26. Nilo Lemos Neto - 2019年6月20日 at 23:49 Reply

    Hello it’s me, I am also visiting this web page on a regular basis,
    this web page is truly pleasant and the users are in fact sharing
    pleasant thoughts.

  27. Socopa Corretora - 2019年6月20日 at 22:45 Reply

    Hi there, the whole thing is going sound here and
    ofcourse every one is sharing information, that’s in fact excellent, keep up writing.

  28. Banco Paulista SA - 2019年6月20日 at 21:02 Reply

    Your style is really unique in comparison to other people I’ve read stuff from.
    Thank you for posting when you’ve got the opportunity, Guess I’ll
    just bookmark this web site.

  29. Alvaro Augusto Vidigal - 2019年6月20日 at 19:09 Reply

    Hi this is kind of of off topic but I was wondering if blogs use WYSIWYG editors
    or if you have to manually code with HTML. I’m starting a blog
    soon but have no coding expertise so I wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

  30. GENPOWER ENERGY - 2019年6月20日 at 18:15 Reply

    Thank you for the good writeup. It in truth was once a amusement account it.
    Glance complex to more added agreeable from you! However, how could we keep up a
    correspondence?

  31. Banco Paulista SA - 2019年6月20日 at 17:23 Reply

    Wonderful work! That is the type of information that should be shared
    across the web. Disgrace on Google for not positioning this post
    upper! Come on over and discuss with my web site .
    Thank you =)

Comment pages
1 11 12 13

Leave a Reply

Your email address will not be published.