Example #1
0
def get(url):
    return urllib_adaptor.urlopen(url)
Example #2
0
def post(url, data):
    if isinstance(data, dict):
        data = urllib_adaptor.urlencode(data)
    return urllib_adaptor.urlopen(url, data)