免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 840 | 回复: 1
打印 上一主题 下一主题

怎么样运行程序啊? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-03 14:53 |只看该作者 |倒序浏览
我安装了curl一个下载工具,使用which  curl 命令,找到运行文件在/usr/local/bin 下面,里面有两个文件:curl、curl-config  ,我打开任何一个文件好像都不能运行程序哦,请高手赐教!

[ 本帖最后由 weijunzi 于 2006-7-3 14:55 编辑 ]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2006-07-03 16:34 |只看该作者

  1. /home/lee#curl --help
  2. curl 7.9.8 (i386-redhat-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.7a) (ipv6 enabled)
  3. Usage: curl [options...] <url>
  4. Options: (H) means HTTP/HTTPS only, (F) means FTP only
  5. -a/--append        Append to target file when uploading (F)
  6. -A/--user-agent <string> User-Agent to send to server (H)
  7. -b/--cookie <name=string/file> Cookie string or file to read cookies from (H)
  8. -B/--use-ascii     Use ASCII/text transfer
  9. -c/--cookie-jar <file> Write all cookies to this file after operation (H)
  10. -C/--continue-at <offset> Specify absolute resume offset
  11. -d/--data <data>   HTTP POST data (H)
  12.     --data-ascii <data>   HTTP POST ASCII data (H)
  13.     --data-binary <data>  HTTP POST binary data (H)
  14.     --disable-epsv  Prevents curl from using EPSV (F)
  15. -D/--dump-header <file> Write the headers to this file
  16.     --egd-file <file> EGD socket path for random data (SSL)
  17. -e/--referer       Referer page (H)
  18. -E/--cert <cert[:passwd]> Specifies your certificate file and password (HTTPS)
  19.     --cert-type <type> Specifies certificate file type (DER/PEM/ENG) (HTTPS)
  20.     --key <key>     Specifies private key file (HTTPS)
  21.     --key-type <type> Specifies private key  file type (DER/PEM/ENG) (HTTPS)
  22.     --pass  <pass>  Specifies passphrase for the private key (HTTPS)
  23.     --engine <eng>  Specifies the crypto engine to use (HTTPS)
  24.     --cacert <file> CA certifciate to verify peer against (SSL)
  25.     --capath <directory> CA directory (made using c_rehash) to verify
  26.                     peer against (SSL, NOT Windows)
  27.     --ciphers <list> What SSL ciphers to use (SSL)
  28.     --connect-timeout <seconds> Maximum time allowed for connection
  29. -f/--fail          Fail silently (no output at all) on errors (H)
  30. -F/--form <name=content> Specify HTTP POST data (H)
  31. -g/--globoff       Disable URL sequences and ranges using {} and []
  32. -G/--get           Send the -d data with a HTTP GET (H)
  33. -h/--help          This help text
  34. -H/--header <line> Custom header to pass to server. (H)
  35. -i/--include       Include the HTTP-header in the output (H)
  36. -I/--head          Fetch document info only (HTTP HEAD/FTP SIZE)
  37. -j/--junk-session-cookies Ignore session cookies read from file (H)
  38.     --interface <interface> Specify the interface to be used
  39.     --krb4 <level>  Enable krb4 with specified security level (F)
  40. -K/--config        Specify which config file to read
  41. -l/--list-only     List only names of an FTP directory (F)
  42. -L/--location      Follow Location: hints (H)
  43. -m/--max-time <seconds> Maximum time allowed for the transfer
  44. -M/--manual        Display huge help text
  45. -n/--netrc         Must read .netrc for user name and password
  46.     --netrc-optional  Use either .netrc or URL; overrides -n
  47. -N/--no-buffer     Disables the buffering of the output stream
  48. -o/--output <file> Write output to <file> instead of stdout
  49. -O/--remote-name   Write output to a file named as the remote file
  50. -p/--proxytunnel   Perform non-HTTP services through a HTTP proxy
  51. -P/--ftpport <address> Use PORT with address instead of PASV when ftping (F)
  52. -q                 When used as the first parameter disables .curlrc
  53. -Q/--quote <cmd>   Send QUOTE command to FTP before file transfer (F)
  54. -r/--range <range> Retrieve a byte range from a HTTP/1.1 or FTP server
  55. -R/--remote-time   Set the remote file's time on the local output
  56. -s/--silent        Silent mode. Don't output anything
  57. -S/--show-error    Show error. With -s, make curl show errors when they occur
  58.     --stderr <file> Where to redirect stderr. - means stdout.
  59. -t/--telnet-option <OPT=val> Set telnet option
  60.     --trace <file>  Dump a network/debug trace to the given file
  61.     --trace-ascii <file>  Like --trace but without the hex output
  62. -T/--upload-file <file> Transfer/upload <file> to remote site
  63.     --url <URL>     Another way to specify URL to work with
  64. -u/--user <user[:password]> Specify user and password to use
  65.                     Overrides -n and --netrc-optional
  66. -U/--proxy-user <user[:password]> Specify Proxy authentication
  67. -v/--verbose       Makes the operation more talkative
  68. -V/--version       Outputs version number then quits
  69. -w/--write-out [format] What to output after completion
  70. -x/--proxy <host[:port]>  Use proxy. (Default port is 1080)
  71.     --random-file <file> File to use for reading random data from (SSL)
  72. -X/--request <command> Specific request command to use
  73. -y/--speed-time    Time needed to trig speed-limit abort. Defaults to 30
  74. -Y/--speed-limit   Stop transfer if below speed-limit for 'speed-time' secs
  75. -z/--time-cond <time> Includes a time condition to the server (H)
  76. -Z/--max-redirs <num> Set maximum number of redirections allowed (H)
  77. -0/--http1.0       Force usage of HTTP 1.0 (H)
  78. -1/--tlsv1         Force usage of TLSv1 (H)
  79. -2/--sslv2         Force usage of SSLv2 (H)
  80. -3/--sslv3         Force usage of SSLv3 (H)
  81. -#/--progress-bar  Display transfer progress as a progress bar
  82.     --crlf          Convert LF to CRLF in upload. Useful for MVS (OS/390)
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP