def zoom_http_post(url, url_body): global zoom_conn_http if zoom_conn_http == None: zoom_conn_http = http.get_conn_http_proxy(zoom_host_http) url_proxy = host_http_proxy() status, body, zoom_conn_http = http.use_httplib_http_proxy(url, zoom_url_proxy, 'POST', url_body, zoom_conn_http, url_proxy, zoom_headers_http) return status, body
def zoom_http_get(url): global zoom_conn_http if zoom_conn_http == None: zoom_conn_http = http.get_conn_http_proxy(zoom_host_http) url_proxy = host_http_proxy() status, body, zoom_conn_http = http.use_httplib_http_proxy(url, 'GET', '', zoom_conn_http, url_proxy, zoom_headers_http) return status, body
def lib_http_post(url, url_body): global lib_conn_http global lib_host_http if lib_conn_http == None: lib_conn_http = http.get_conn_http_proxy(lib_host_http) url_proxy = host_http_proxy() status, body, lib_conn_http = http.use_httplib_http_proxy(url, 'POST', url_body, lib_conn_http, url_proxy, lib_headers_http) return status, body
def lib_http_get(url): global lib_conn_http global lib_host_http #print lib_host_http, '===' if lib_conn_http == None: #print lib_conn_http, 'None' lib_conn_http = http.get_conn_http_proxy(lib_host_http) url_proxy = host_http_proxy() #print url_proxy, 'url_proxy' status, body, lib_conn_http = http.use_httplib_http_proxy(url, 'GET', '', lib_conn_http, url_proxy, lib_headers_http) return status, body