Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)

I have written a code that should show up the Fiddler's capture, but it is not getting displayed. Kindly guide me on how to configure Fiddler so that the request will get captured?

proxy = urllib2.ProxyHandler({'http': '127.0.0.1:8888'})

opener = urllib2.build_opener(proxy)

urllib2.install_opener(opener)

f = urllib2.urlopen('http://www.google.com')

print f.read()

1 Answer

0 votes
by (108k points)

I think maybe when the proxy server has been organized by fiddler2, urllib2 then completely ignores the ProxyHandler for some reason. In Fiddler2:

visit the page Tools->Fiddler Options ...->Connections

Remove the following semicolon from the value in the "IE should bypass Fiddler for ..." field, and then restart the Fiddler2. Hope this helps!

Looking for a Python Tutorial? Join the Intellipaat's Python Course to gain more knowledge on Python.

Browse Categories

...