96 const char *buf,
size_t len);
const char * yaz_url_get_error(yaz_url_t p)
get last error from yaz_url_exec
void yaz_url_set_timeout(yaz_url_t p, int sec, int ns)
sets I/O timeout
yaz_url_t yaz_url_create(void)
creates a URL fetcher handle
Z_HTTP_Response * yaz_url_exec(yaz_url_t p, const char *uri, const char *method, Z_HTTP_Header *headers, const char *buf, size_t len)
executes the actual HTTP request (including redirects, etc)
struct yaz_url * yaz_url_t
handle for our URL fetcher
void yaz_url_set_max_redirects(yaz_url_t p, int num)
sets maximum number of redirects
void yaz_url_destroy(yaz_url_t p)
destroys a URL fetcher
void yaz_url_set_proxy(yaz_url_t p, const char *proxy)
sets proxy for URL fetcher
void yaz_url_set_verbose(yaz_url_t p, int num)
sets verbose level 0=none, >0 verbose
Header for the Z_GDU (HTTP or Z39.50 package)