1

But when I am using urllib, fiddler is able to capture all the calls.

When I am using httplib2,

import httplib2
import json

h = httplib2.Http(".cache")
serviceurl = 'http://google.com'
response, content = h.request(serviceurl)

When I am using urllib,

import json
import urllib.request
import requests

url = 'http://google.com'
uh = urllib.request.urlopen(url,)
data=uh.read()
RedBaron
  • 4,717
  • 5
  • 41
  • 65
swapnil
  • 29
  • 2

1 Answers1

1

As I know urllib supports proxy servers, but httplib2 don't. So you need to modify your code. Tunneling httplib Through a Proxy

Community
  • 1
  • 1
Etun
  • 403
  • 3
  • 8