96 const char *buf,
size_t len);
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
void yaz_url_set_cert_fname(yaz_url_t p, const char *fname)
sets file with client-side certificate
Z_HTTP_Response * yaz_url_exec(yaz_url_t p, const char *uri, const char *method, Z_HTTP_Header *user_headers, const char *buf, size_t len)
executes the actual HTTP request (including redirects, etc)
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
const char * yaz_url_get_error(yaz_url_t p)
get last error from yaz_url_exec
void yaz_url_set_check_cert(yaz_url_t p, int check_cert)
sets whether to check SSL certificates
void yaz_url_set_verbose(yaz_url_t p, int num)
sets verbose level 0=none, >0 verbose
struct yaz_url * yaz_url_t
handle for our URL fetcher
Header for the Z_GDU (HTTP or Z39.50 package).