Lines 169-174
Link Here
|
169 |
{ "connect-timeout", 0, OPT_VALUE, "connecttimeout", -1 }, |
169 |
{ "connect-timeout", 0, OPT_VALUE, "connecttimeout", -1 }, |
170 |
{ "continue", 'c', OPT_BOOLEAN, "continue", -1 }, |
170 |
{ "continue", 'c', OPT_BOOLEAN, "continue", -1 }, |
171 |
{ "convert-links", 'k', OPT_BOOLEAN, "convertlinks", -1 }, |
171 |
{ "convert-links", 'k', OPT_BOOLEAN, "convertlinks", -1 }, |
|
|
172 |
{ "content-type", 0, OPT_VALUE, "contentaccepts", -1 }, |
173 |
{ "content-type-exclude", 0, OPT_VALUE, "contentrejects", -1 }, |
172 |
{ "cookies", 0, OPT_BOOLEAN, "cookies", -1 }, |
174 |
{ "cookies", 0, OPT_BOOLEAN, "cookies", -1 }, |
173 |
{ "cut-dirs", 0, OPT_VALUE, "cutdirs", -1 }, |
175 |
{ "cut-dirs", 0, OPT_VALUE, "cutdirs", -1 }, |
174 |
{ IF_DEBUG ("debug"), 'd', OPT_BOOLEAN, "debug", -1 }, |
176 |
{ IF_DEBUG ("debug"), 'd', OPT_BOOLEAN, "debug", -1 }, |
Lines 541-546
Link Here
|
541 |
--post-data=STRING use the POST method; send STRING as the data.\n"), |
543 |
--post-data=STRING use the POST method; send STRING as the data.\n"), |
542 |
N_("\ |
544 |
N_("\ |
543 |
--post-file=FILE use the POST method; send contents of FILE.\n"), |
545 |
--post-file=FILE use the POST method; send contents of FILE.\n"), |
|
|
546 |
N_("\ |
547 |
--content-type=LIST comma-separated list of accepted content-types.\n"), |
548 |
N_("\ |
549 |
--content-type-exclude=LIST comma-separated list of rejected content-types.\n"), |
544 |
"\n", |
550 |
"\n", |
545 |
|
551 |
|
546 |
#ifdef HAVE_SSL |
552 |
#ifdef HAVE_SSL |
Lines 942-947
Link Here
|
942 |
else |
948 |
else |
943 |
status = retrieve_url (*t, &filename, &redirected_URL, NULL, &dt); |
949 |
status = retrieve_url (*t, &filename, &redirected_URL, NULL, &dt); |
944 |
|
950 |
|
|
|
951 |
if(status == CTYPEREJECTED) |
952 |
logprintf (LOG_VERBOSE, _("Not downloading, content type rejected.\n")); |
953 |
|
945 |
if (opt.delete_after && file_exists_p(filename)) |
954 |
if (opt.delete_after && file_exists_p(filename)) |
946 |
{ |
955 |
{ |
947 |
DEBUGP (("Removing file due to --delete-after in main():\n")); |
956 |
DEBUGP (("Removing file due to --delete-after in main():\n")); |