<arg>-p <replaceable>fname</replaceable></arg>
<arg>-R <replaceable>num</replaceable></arg>
<arg>-u <replaceable>user/password</replaceable></arg>
+ <arg>-v</arg>
<arg>-x <replaceable>proxy</replaceable></arg>
<arg rep="repeat">url</arg>
</cmdsynopsis>
</varlistentry>
<varlistentry>
+ <term>-v</term>
+ <listitem><para>
+ Makes yaz-url dump each HTTP request/response to stdout.
+ </para></listitem>
+ </varlistentry>
+
+ <varlistentry>
<term>-x <replaceable>proxy</replaceable></term>
<listitem><para>
Specifies a proxy to be used for URL fetch.
printf(" -p fname POSTs file at following url\n");
printf(" -R num Set maximum number of HTTP redirects\n");
printf(" -u user/password Sets Basic HTTP auth\n");
+ printf(" -v Verbose\n");
printf(" -x proxy Sets HTTP proxy\n");
exit(1);
}
int no_urls = 0;
const char *outfname = 0;
- while ((ret = options("h{help}H:m:O:p:R{max-redirs}:u:x:", argv, argc, &arg))
+ while ((ret = options("h{help}H:m:O:p:R{max-redirs}:u:vx:", argv, argc, &arg))
!= YAZ_OPTIONS_EOF)
{
switch (ret)
else
z_HTTP_header_add_basic_auth(odr, &http_headers, arg, 0);
break;
+ case 'v':
+ yaz_url_set_verbose(p, 1);
+ break;
case 'x':
yaz_url_set_proxy(p, arg);
break;