/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data.
+ * Copyright (C) 1995-2013 Index Data.
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
/** \brief destroys a URL fetcher
\param p handle
-
+
Note: OK to pass NULL as p
*/
YAZ_EXPORT void yaz_url_destroy(yaz_url_t p);
*/
YAZ_EXPORT void yaz_url_set_proxy(yaz_url_t p, const char *proxy);
+/** \brief sets maximum number of redirects
+ \param p handle
+ \param num maximum number of redirects
+*/
+YAZ_EXPORT void yaz_url_set_max_redirects(yaz_url_t p, int num);
+
/** \brief executes the actual HTTP request (including redirects, etc)
\param p handle
\param uri URL