(转)linux 命令访问url: curl http://www.baidu.com/index.html

转:https://blog.csdn.net/michael1112/article/details/79119424

1.elinks - lynx-like替代角色模式WWW的浏览器

例如:

 elinks --dump http://www.baidu.com

2.wget 这个会将访问的首页下载到本地

[root@el5-mq2 ~]# wget http://www.baidu.com
--2011-10-17 16:30:10--  http://www.baidu.com/
Resolving www.baidu.com... 119.75.218.45, 119.75.217.56
Connecting to www.baidu.com|119.75.218.45|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8403 (8.2K) [text/html]
Saving to: `index.html'

100%[==========================================================================================>] 8,403       --.-K/s   in 0.01s  

2011-10-17 16:30:10 (648 KB/s) - `index.html' saved [8403/8403]

3.curl会显示出源码

curl http://www.baidu.com/index.html

4.lynx(这个以前在群里面见有人讨论过,但是没有尝试过,想用的话还需要下载软件)

lynx http://www.baidu.com

--------------------- 本文来自 江东橘子 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/michael1112/article/details/79119424?utm_source=copy

转载于:https://www.cnblogs.com/wangle1001986/p/9724131.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值