python import httplib2 python http = httplib2.Http() python response, content = http.request('http://example.com', 'GET') python data = {'username': 'test', 'password': '123456'} response, content = http.request('http://example.com', 'POST', body=data) python status = response['status'] content_type = response['content-type'] content_length = response['content-length'] python print(content.decode('utf-8'))


上一篇:
下一篇:
切换中文