发博文
个人资料
很不温柔
很不温柔
  • 博客等级:
  • 博客积分:135
  • 博客访问:1,809,923
  • 关注人气:1
评论
加载中…
留言
加载中…
友情链接

虎妈的BLOG

这个这个,上一辈人上网我们要支持。。

杨来一日一杀

一日那个一杀

Micro的主页

老Micro的个人主页

老虎的BLOG

某头白老虎的blog

龙猫的BLOG

龙猫大人的行宫

小白的狗窝

游戏圈的朋友

宝宝的BLOG

我家宝宝的blog

小屋的把咯嘎

精灵语是酱紫的

春油棒的博

Z-Cup的棒槌啊~~啊啊

米饭团子

好大一陀米饭

王新钢

王新钢的blog~手游人士

北鹰的blog

又一位同行的blog

好友
加载中…
博文

加入昆仑万维,体验创业激情!

2011年昆仑万维校园招聘

 

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 
标签:

博客五周年

我的博客今天516天啦!

2005年09月06日,在新浪博客安家。

2005年09月06日,写下了第一篇博文:《新浪原来给的默认标题太无耻了。。。偶决定改改》

这些年来,新浪博客,陪伴着我一点一点谱写生活。

文 章  79篇
图 片  0张
访问人数 1808278次
阅读  ┆ 评论  ┆ 转载原文 ┆ 收藏 
(2007-05-26 19:50)
分类: 偶尔发牢骚
 真正的加班,应该是:
 每天至少要干25个小时的活,每周干8天
 
(ok,随便发发牢骚)
阅读  ┆ 评论  ┆ 转载 ┆ 收藏 

一个强大的文件下载工具curl

curl是一个利用URL语法在命令行方式下工作的文件传输工具。本文介绍了它的简单用法。

curl是一个利用URL语法在命令行方式下工作的文件传输工具。它支持很多协议:FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE 以及 LDAP。curl同样支持HTTPS认证,HTTP POST方法, HTTP PUT方法, FTP上传, kerberos认证, HTTP上传, 代理服务器, cookies, 用户名/密码认证, 下载文件断点续传, 上载文件断点续传, http代理服务器管道( proxy tunneling), 甚至它还支持IPv6, socks5代理服务器, 通过http代理服务器上传文件到FTP服务器等等,功能十分强大。Windows操作系统下的网络蚂蚁,网际快车(FlashGet)的功能它都可以做到。准确的说,curl支持文件的上传和下载,所以是一个综合传输工具,但是按照传统,用户习惯称curl为下载工具。
curl是瑞典curl组织开发的,您可以访问http://curl.haxx.se/获取它的源代码和相关说明。鉴于curl在Linux上的广泛使用,IBM在AIX Linux Toolbox的光盘中包含了这个软件,并且您可以访问IBM网站http://www- 1.ibm.com/ser

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 
标签:

curl

Sometimes your HTTP access is only available through the use of a HTTP proxy. This seems to be especially common at various companies. A HTTP proxy may require its own user and password to allow the client to get through to the Internet. To specify those with curl, run something like:         curl -U proxyuser:proxypassword curl.haxx.se  If your proxy requires the authentication to be done using the NTLM method, use --proxy-ntlm, if it requires Digest use --proxy-digest.  If you use any one these user+password options but leave out the password part, curl will prompt for the password interactively.  Do note that when a program is run, its parameters might be possible to see when listing the running processes of the system. Thus, other users may be able to watch your passwords if you pass them as plain command line options. There are ways to circumvent this. 7. Referer  A HTTP request may include a 'referer' f
阅读  ┆ 评论  ┆ 转载 ┆ 收藏 
标签:

curl

Online:  http://curl.haxx.se/docs/httpscripting.htmlDate:    December 9, 2004                 The Art Of Scripting HTTP Requests Using Curl                =============================================  This document will assume that you're familiar with HTML and general networking.  The possibility to write scripts is essential to make a good computer system. Unix' capability to be extended by shell scripts and various tools to run various automated commands and scripts is one reason why it has succeeded so well.  The increasing amount of applications moving to the web has made 'HTTP Scripting' more frequently requested and wanted. To be able to automatically extract information from the web, to fake users, to post or upload data to web servers are all im

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 
(2007-04-17 16:50)
标签:

curl

curl学习
 
 
 
校园网ip网费查询脚本的分析
这个脚本原来是bbs上的一个帖子,我拿出来作为学习curl的资料。

设置cookie,如下:

[jasonh@fbsd bin]$ ./curl.sh
所剩余额: 109.00

[jasonh@fbsd bin]$ cat curl.sh
curl -d 'fr=00&id_ip=YOUR_IP&pass=YOUR_PASSWD&set=%BD%F8%C8%EB' \
        http://hitsun.hit.edu.cn/index1.php -L -D hitsun.cookie \
        -b hitsun.cookie 2>&1 |
sed -n 's/^.*\(所剩余额\)\([^0-9]*\)\([0-9.]*\).*/\1: \3/p'

命令分析:

curl

 -d/--data <data>   HTTP POST data (H)
    --data-ascii <data>   HTTP POST ASCII data (H)
    --data-binary <

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 
标签:

curl

分类: 资源要共享

curl突破限制的一些用法 
curl是一個非常好用的下載與上傳的工具,如果有一個一連串的下載與上傳的任務要做,這時後我們就可以使用curl幫助我們.

下面都是一些我在網路上看到不錯的文章(一些使用上的例子),貼在這裡,互相交流學習.

========================================
curl的用法

一、基本抓檔:

% curl -O 'http://blueapple.infor.org/curl/1.txt'

敲入這行指令以後,會出現代表抓檔進度以及速度的文字。

一定有人有過這種經驗:網頁上有許多按照編號命名的檔案,每次都要一個一個點選以後再儲存,實在很煩!要是只有十個二十個那還好,可是要是遇上了好幾百個、好幾千個檔案呢?curl提供了連續抓檔案的功能:

% curl -O 'http://blueapple.infor.org/curl/mac/[1-10].jpg'

三、續傳檔案:

有的時候抓檔抓到一半就斷線是

阅读  ┆ 评论  ┆ 转载 ┆ 收藏 
强文首发在天涯,随后即被疯狂转贴,终于今天开始在17k连载。
登陆17k首日即创下双榜第一的成绩。极其彪悍!
我也不得不激烈的顶一下了。
 
 
阅读  ┆ 评论  ┆ 转载 ┆ 收藏 
正在封闭测试。
入口:
 
激活码获得:
 
阅读  ┆ 评论  ┆ 转载 ┆ 收藏 
  

新浪BLOG意见反馈留言板 不良信息反馈 电话:4006900000 提示音后按1键(按当地市话标准计费) 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 会员注册 | 产品答疑

新浪公司 版权所有