Fiddler does not capture my script's requests

后端 未结 1 601
终归单人心
终归单人心 2020-12-30 16:44

my code:

proxy = urllib2.ProxyHandler({\'http\': \'127.0.0.1:8888\'})
opener = urllib2.build_opener(proxy)
urllib2.install_opener(opener)
f = urllib2.urlopen(\'h         


        
相关标签:
1条回答
  • 2020-12-30 17:28

    I got the exactly the same issue, when fiddler2 opens, even I change proxy = urllib2.ProxyHandler({'http': 'http://asdfl.com:13212/'}) (such none existing proxy server), it still can get the page content, I guess maybe when proxy server has been setup by fiddler2, urllib2 totally ignore the ProxyHandler for some reason, still can't figure out.


    I got it, check that thread in stackoverflow: urllib2 doesn't use proxy (Fiddler2), set using ProxyHandler

    In Fiddler2, go to the page Tools->Fiddler Options ...->Connections, remove the trailing semicolon from the value in the "IE should bypass Fiddler for ..." field and restart Fiddler2.

    this solution solved my problem, hope can help someone if you are struggling with it.

    0 讨论(0)
提交回复
热议问题