diff options
author | FUJISHIMA Satsuki <sf@FreeBSD.org> | 2003-07-14 02:37:49 +0000 |
---|---|---|
committer | FUJISHIMA Satsuki <sf@FreeBSD.org> | 2003-07-14 02:37:49 +0000 |
commit | f689ded903e006ebf48217b63d01eb414857f39f (patch) | |
tree | ed5706ee7a87d2c132a6d09336b456c094216664 /www/htdump/files/patch-usage.c | |
parent | get rid of libgnugetopt dependency for -CURRENT, (diff) |
get rid of libgnugetopt dependency for -CURRENT,
use USE_GETOPT_LONG instead.
respect CC, CFLAGS.
use getopt_long() instead of getopt_long_only().
Notes
Notes:
svn path=/head/; revision=84838
Diffstat (limited to '')
-rw-r--r-- | www/htdump/files/patch-usage.c | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/www/htdump/files/patch-usage.c b/www/htdump/files/patch-usage.c new file mode 100644 index 000000000000..edf718f1de95 --- /dev/null +++ b/www/htdump/files/patch-usage.c @@ -0,0 +1,62 @@ +--- usage.c.orig Wed Dec 20 00:26:47 2000 ++++ usage.c Mon Jul 7 04:43:54 2003 +@@ -29,24 +29,24 @@ + " OPTIONS\n" + " ===================================\n" + " Main mode of operation:\n" +- " -command=<command> Define request command. Default is 'GET'.\n" +- " -post=<form data> POST form data. When used, command is\n" +- " overriden to 'POST'\n" ++ " --command=<command> Define request command. Default is 'GET'.\n" ++ " --post=<form data> POST form data. When used, command is\n" ++ " overriden to 'POST'\n" + "\n" + " Miscellaneous:\n" +- " -debug=<level> Debug mode, specify level\n" +- " -file=<file> Dump data to file. (Auto-resumes)\n" +- " When omitted, output goes to stdout.\n" ++ " --debug=<level> Debug mode, specify level\n" ++ " --file=<file> Dump data to file. (Auto-resumes)\n" ++ " When omitted, output goes to stdout.\n" + "\n" + " Header adjustment:\n" +- " -accept=<Accept> Add 'Accept:' header\n" +- " -cookie=<Cookie> Add 'Cookie:' header\n" +- " -from=<From> Add 'From:' header\n" +- " -host=<Host> Add 'Host:' header (*)\n" +- " -referer=<Referer> Add 'Referer:' header\n" +- " -range=<Range string> Add 'Range:' header (*)\n" +- " -agent=<Agent string> Add 'User-Agent:' header\n" +- " -version=<0|1|r> Select HTTP version. Default is HTTP/1.1\n" ++ " --accept=<Accept> Add 'Accept:' header\n" ++ " --cookie=<Cookie> Add 'Cookie:' header\n" ++ " --from=<From> Add 'From:' header\n" ++ " --host=<Host> Add 'Host:' header (*)\n" ++ " --referer=<Referer> Add 'Referer:' header\n" ++ " --range=<Range string> Add 'Range:' header (*)\n" ++ " --agent=<Agent string> Add 'User-Agent:' header\n" ++ " --version=<0|1|r> Select HTTP version. Default is HTTP/1.1\n" + "\n" + " (*) = HTTP/1.1 only\n" + " You need version 1.1 to use password authentication\n" +@@ -56,13 +56,13 @@ + " ===================================\n" + " htdump www.netscape.com\n" + " htdump https://flemming:secret@www.jamesbond.com/members/secret.html\n" +- " htdump -host=\"www.vhost1.com\" http://127.0.0.1/\n" +- " htdump -referer=\"www.fbi.gov\" http://www.arpa.mil/secret.zip\n" +- " htdump -version=r -agent=\"Crazy www browser 1.6\" http://bouncy.com/\n" +- " htdump -command=\"OPTIONS\" http://arak.cs.hro.nl/ -debug\n" +- " htdump -file=this.zip download.com/this.zip &\n" +- " htdump http://download.com/big.zip -range=\"644221-\" >> big.zip &\n" +- " htdump -post=\"name=Ren&op1=yes\" here.com/cgi-bin/prog\n" ++ " htdump --host=\"www.vhost1.com\" http://127.0.0.1/\n" ++ " htdump --referer=\"www.fbi.gov\" http://www.arpa.mil/secret.zip\n" ++ " htdump --version=r --agent=\"Crazy www browser 1.6\" http://bouncy.com/\n" ++ " htdump --command=\"OPTIONS\" http://arak.cs.hro.nl/ --debug\n" ++ " htdump --file=this.zip download.com/this.zip &\n" ++ " htdump http://download.com/big.zip --range=\"644221-\" >> big.zip &\n" ++ " htdump --post=\"name=Ren&op1=yes\" here.com/cgi-bin/prog\n" + "\n" + "\n" + " htdump "VERSION"\n" |