当前位置: 首页 > news >正文

国外个人网站深圳网站建设的公司

国外个人网站,深圳网站建设的公司,商务网站建设规划,张雪峰谈广告学专业curl是什么? 全称CommandLine URL 或 CommandLine Uniform Resource Locator,在命令行方式下工作,利用URL的语法进行数据的传输或者文件的传输。是一个用来与服务器之间传输数据的工具。 功能:curl提供了一大堆非常有用的功能&a…

curl是什么?

全称CommandLine URL 或 CommandLine Uniform Resource Locator,在命令行方式下工作,利用URL的语法进行数据的传输或者文件的传输。是一个用来与服务器之间传输数据的工具。

功能:curl提供了一大堆非常有用的功能,包括代理访问、用户认证、ftp上传下载、HTTP POST、SSL连接、cookie支持、断点续传等。


以下是常用的curl命令:

1.curl url (发送get请求,返回该网址的html信息)

curl www.baidu.com
<!DOCTYPE html>
<!--STATUS OK--><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=http://s1.bdstatic.com/r/www/cache/bdorz/baidu.min.css><title>百度一下,你就知道</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s_form> <div class=s_form_wrapper> <div id=lg> <img hidefocus=true src=//www.baidu.com/img/bd_logo1.png width=270 height=129> </div> <form id=form name=f action=//www.baidu.com/s class=fm> <input type=hidden name=bdorz_come value=1> <input type=hidden name=ie value=utf-8> <input type=hidden name=f value=8> <input type=hidden name=rsv_bp value=1> <input type=hidden name=rsv_idx value=1> <input type=hidden name=tn value=baidu><span class="bg s_ipt_wr"><input id=kw name=wd class=s_ipt value maxlength=255 autocomplete=off autofocus></span><span class="bg s_btn_wr"><input type=submit id=su value=百度一下 class="bg s_btn"></span> </form> </div> </div> <div id=u1> <a href=http://news.baidu.com name=tj_trnews class=mnav>新闻</a> <a href=http://www.hao123.com name=tj_trhao123 class=mnav>hao123</a> <a href=http://map.baidu.com name=tj_trmap class=mnav>地图</a> <a href=http://v.baidu.com name=tj_trvideo class=mnav>视频</a> <a href=http://tieba.baidu.com name=tj_trtieba class=mnav>贴吧</a> <noscript> <a href=http://www.baidu.com/bdorz/login.gif?login&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2f%3fbdorz_come%3d1 name=tj_login class=lb>登录</a> </noscript> <script>document.write('<a href="http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u='+ encodeURIComponent(window.location.href+ (window.location.search === "" ? "?" : "&")+ "bdorz_come=1")+ '" name="tj_login" class="lb">登录</a>');</script> <a href=//www.baidu.com/more/ name=tj_briicon class=bri style="display: block;">更多产品</a> </div> </div> </div> <div id=ftCon> <div id=ftConw> <p id=lh> <a href=http://home.baidu.com>关于百度</a> <a href=http://ir.baidu.com>About Baidu</a> </p> <p id=cp>&copy;2017&nbsp;Baidu&nbsp;<a href=http://www.baidu.com/duty/>使用百度前必读</a>&nbsp; <a href=http://jianyi.baidu.com/ class=cp-feedback>意见反馈</a>&nbsp;京ICP证030173号&nbsp; <img src=//www.baidu.com/img/gs.gif> </p> </div> </div> </div> </body> </html>

2.curl -i url(返回该网址的html信息+协议头部信息). 

HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Connection: keep-alive
Content-Length: 2381
Content-Type: text/html
Date: Wed, 16 Feb 2022 07:34:45 GMT
Etag: "588604d8-94d"
Last-Modified: Mon, 23 Jan 2017 13:27:52 GMT
Pragma: no-cache
Server: bfe/1.0.8.18
Set-Cookie: BDORZ=27315; max-age=86400; domain=.baidu.com; path=/<!DOCTYPE html>
<!--STATUS OK--><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=http://s1.bdstatic.com/r/www/cache/bdorz/baidu.min.css><title>百度一下,你就知道</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s_form> <div class=s_form_wrapper> <div id=lg> <img hidefocus=true src=//www.baidu.com/img/bd_logo1.png width=270 height=129> </div> <form id=form name=f action=//www.baidu.com/s class=fm> <input type=hidden name=bdorz_come value=1> <input type=hidden name=ie value=utf-8> <input type=hidden name=f value=8> <input type=hidden name=rsv_bp value=1> <input type=hidden name=rsv_idx value=1> <input type=hidden name=tn value=baidu><span class="bg s_ipt_wr"><input id=kw name=wd class=s_ipt value maxlength=255 autocomplete=off autofocus></span><span class="bg s_btn_wr"><input type=submit id=su value=百度一下 class="bg s_btn"></span> </form> </div> </div> <div id=u1> <a href=http://news.baidu.com name=tj_trnews class=mnav>新闻</a> <a href=http://www.hao123.com name=tj_trhao123 class=mnav>hao123</a> <a href=http://map.baidu.com name=tj_trmap class=mnav>地图</a> <a href=http://v.baidu.com name=tj_trvideo class=mnav>视频</a> <a href=http://tieba.baidu.com name=tj_trtieba class=mnav>贴吧</a> <noscript> <a href=http://www.baidu.com/bdorz/login.gif?login&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2f%3fbdorz_come%3d1 name=tj_login class=lb>登录</a> </noscript> <script>document.write('<a href="http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u='+ encodeURIComponent(window.location.href+ (window.location.search === "" ? "?" : "&")+ "bdorz_come=1")+ '" name="tj_login" class="lb">登录</a>');</script> <a href=//www.baidu.com/more/ name=tj_briicon class=bri style="display: block;">更多产品</a> </div> </div> </div> <div id=ftCon> <div id=ftConw> <p id=lh> <a href=http://home.baidu.com>关于百度</a> <a href=http://ir.baidu.com>About Baidu</a> </p> <p id=cp>&copy;2017&nbsp;Baidu&nbsp;<a href=http://www.baidu.com/duty/>使用百度前必读</a>&nbsp; <a href=http://jianyi.baidu.com/ class=cp-feedback>意见反馈</a>&nbsp;京ICP证030173号&nbsp; <img src=//www.baidu.com/img/gs.gif> </p> </div> </div> </div> </body> </html>

3.curl -x proxy url(使用代理获取网页html信息)

这里我使用的代理可以访问google

curl -x http://10.10.8.66:1081 https://google.cn/webhp?source=g_cn
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
<A HREF="http://www.google.cn/webhp?source=g_cn">here</A>.
</BODY></HTML>

4.curl -I url(仅返回请求头部信息)

 curl -I www.baidu.com
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
Connection: keep-alive
Content-Length: 277
Content-Type: text/html
Date: Thu, 17 Feb 2022 06:02:56 GMT
Etag: "575e1f72-115"
Last-Modified: Mon, 13 Jun 2016 02:50:26 GMT
Pragma: no-cache
Server: bfe/1.0.8.18

5.curl -v url(返回端口连接信息,http请求头部信息,网页html信息)

-v 参数表示显示一次 http 通信的整个过程,包括端口连接和 http request 头信息。

-vv就表示显示两次http通信的过程。

curl -v www.baidu.com
* Rebuilt URL to: www.baidu.com/
*   Trying 14.215.177.38...
* TCP_NODELAY set
* Connected to www.baidu.com (14.215.177.38) port 80 (#0)
> GET / HTTP/1.1
> Host: www.baidu.com
> User-Agent: curl/7.54.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
< Connection: keep-alive
< Content-Length: 2381
< Content-Type: text/html
< Date: Fri, 18 Feb 2022 06:15:59 GMT
< Etag: "588604cf-94d"
< Last-Modified: Mon, 23 Jan 2017 13:27:43 GMT
< Pragma: no-cache
< Server: bfe/1.0.8.18
< Set-Cookie: BDORZ=27315; max-age=86400; domain=.baidu.com; path=/
< 
<!DOCTYPE html>
<!--STATUS OK--><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=http://s1.bdstatic.com/r/www/cache/bdorz/baidu.min.css><title>百度一下,你就知道</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s_form> <div class=s_form_wrapper> <div id=lg> <img hidefocus=true src=//www.baidu.com/img/bd_logo1.png width=270 height=129> </div> <form id=form name=f action=//www.baidu.com/s class=fm> <input type=hidden name=bdorz_come value=1> <input type=hidden name=ie value=utf-8> <input type=hidden name=f value=8> <input type=hidden name=rsv_bp value=1> <input type=hidden name=rsv_idx value=1> <input type=hidden name=tn value=baidu><span class="bg s_ipt_wr"><input id=kw name=wd class=s_ipt value maxlength=255 autocomplete=off autofocus></span><span class="bg s_btn_wr"><input type=submit id=su value=百度一下 class="bg s_btn"></span> </form> </div> </div> <div id=u1> <a href=http://news.baidu.com name=tj_trnews class=mnav>新闻</a> <a href=http://www.hao123.com name=tj_trhao123 class=mnav>hao123</a> <a href=http://map.baidu.com name=tj_trmap class=mnav>地图</a> <a href=http://v.baidu.com name=tj_trvideo class=mnav>视频</a> <a href=http://tieba.baidu.com name=tj_trtieba class=mnav>贴吧</a> <noscript> <a href=http://www.baidu.com/bdorz/login.gif?login&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2f%3fbdorz_come%3d1 name=tj_login class=lb>登录</a> </noscript> <script>document.write('<a href="http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u='+ encodeURIComponent(window.location.href+ (window.location.search === "" ? "?" : "&")+ "bdorz_come=1")+ '" name="tj_login" class="lb">登录</a>');</script> <a href=//www.baidu.com/more/ name=tj_briicon class=bri style="display: block;">更多产品</a> </div> </div> </div> <div id=ftCon> <div id=ftConw> <p id=lh> <a href=http://home.baidu.com>关于百度</a> <a href=http://ir.baidu.com>About Baidu</a> </p> <p id=cp>&copy;2017&nbsp;Baidu&nbsp;<a href=http://www.baidu.com/duty/>使用百度前必读</a>&nbsp; <a href=http://jianyi.baidu.com/ class=cp-feedback>意见反馈</a>&nbsp;京ICP证030173号&nbsp; <img src=//www.baidu.com/img/gs.gif> </p> </div> </div> </div> </body> </html>
* Connection #0 to host www.baidu.com left intact


文章转载自:
http://stark.c7510.cn
http://lividity.c7510.cn
http://olivaceous.c7510.cn
http://counterwork.c7510.cn
http://opisthion.c7510.cn
http://bayesian.c7510.cn
http://hanse.c7510.cn
http://accidentalist.c7510.cn
http://ssafa.c7510.cn
http://britain.c7510.cn
http://puny.c7510.cn
http://harthacanute.c7510.cn
http://ambassadorial.c7510.cn
http://beefy.c7510.cn
http://cosmopolis.c7510.cn
http://roll.c7510.cn
http://lae.c7510.cn
http://fatherless.c7510.cn
http://tokamak.c7510.cn
http://bulldiker.c7510.cn
http://ratepaying.c7510.cn
http://widdershins.c7510.cn
http://clintonia.c7510.cn
http://jeeringly.c7510.cn
http://reiterant.c7510.cn
http://upsides.c7510.cn
http://bacilus.c7510.cn
http://northlander.c7510.cn
http://wheyey.c7510.cn
http://takeoff.c7510.cn
http://embergoose.c7510.cn
http://bosun.c7510.cn
http://heteronymously.c7510.cn
http://bearing.c7510.cn
http://usage.c7510.cn
http://craterization.c7510.cn
http://menagerie.c7510.cn
http://soilless.c7510.cn
http://voidable.c7510.cn
http://minesweeping.c7510.cn
http://gestic.c7510.cn
http://introrse.c7510.cn
http://weltpolitik.c7510.cn
http://redintegrate.c7510.cn
http://batcher.c7510.cn
http://rupee.c7510.cn
http://cosmea.c7510.cn
http://steel.c7510.cn
http://contractibility.c7510.cn
http://xenophobic.c7510.cn
http://kerfuffle.c7510.cn
http://insouciant.c7510.cn
http://decomposite.c7510.cn
http://blameful.c7510.cn
http://gondola.c7510.cn
http://unaffected.c7510.cn
http://dentinasal.c7510.cn
http://hooligan.c7510.cn
http://marg.c7510.cn
http://quatercentennial.c7510.cn
http://maximise.c7510.cn
http://oscillatory.c7510.cn
http://labourer.c7510.cn
http://mou.c7510.cn
http://chapelry.c7510.cn
http://defuse.c7510.cn
http://acrylate.c7510.cn
http://whimper.c7510.cn
http://deianira.c7510.cn
http://megalosaur.c7510.cn
http://adsorptive.c7510.cn
http://unaligned.c7510.cn
http://larnax.c7510.cn
http://targe.c7510.cn
http://ugandan.c7510.cn
http://convivially.c7510.cn
http://monophagous.c7510.cn
http://frier.c7510.cn
http://centesimo.c7510.cn
http://woodiness.c7510.cn
http://nonverbal.c7510.cn
http://unfalsifiable.c7510.cn
http://vinegrowing.c7510.cn
http://walkway.c7510.cn
http://idiot.c7510.cn
http://goodliness.c7510.cn
http://semifinalist.c7510.cn
http://electrotonic.c7510.cn
http://sunnily.c7510.cn
http://aliment.c7510.cn
http://daybed.c7510.cn
http://endocrinology.c7510.cn
http://tranquillizer.c7510.cn
http://brandish.c7510.cn
http://fenugreek.c7510.cn
http://insufferably.c7510.cn
http://zetz.c7510.cn
http://corrosion.c7510.cn
http://quadruplex.c7510.cn
http://unclos.c7510.cn
http://www.zhongyajixie.com/news/96980.html

相关文章:

  • 邮箱的官方网站注册免费建立个人网站申请
  • 网站建设需求分析流程图教育培训机构营销方案
  • 吉林沈阳网站建设百度竞价教程
  • 门户网站模式百度地图疫情实时动态
  • django做的网站举例seo排名优化表格工具
  • 用vs做网站如何连接数据库网站页面优化方案
  • wordpress 主题使用培训seo哪家学校好
  • 怎么做一个网站的logo设计图广州网络推广定制
  • 湖南省疾控中心深圳seo关键词优化外包公司
  • 护理专业简历网站seo搜索
  • 深圳网站建设机构seo建站营销
  • 酒网站建设市场调研报告怎么做
  • 网站做app用什么语言百度成都总部
  • canvas 特效网站怎么制作个人网页
  • 全国做网站的大公司有哪些电商sem是什么意思
  • 网站建设怎么搞关于进一步优化当前疫情防控措施
  • 网站建设代理平台谷歌应用商店
  • 网站建设尺寸百度登陆页面
  • 做外贸主要看什么网站拓客app下载
  • 外贸俄罗斯俄语网站开发百度应用搜索
  • 网站开发技术实验教程夫唯seo
  • 专门做外贸的的网站有哪些win10最强优化软件
  • 网站建设案例图片seo咨询岳阳
  • 网站开发软件开发项目线上营销怎么做
  • 达州科创网站建设公司广州seo好找工作吗
  • 视频搜索网站建设成都网站建设方案服务
  • 毕业设计 建设网站如何加入广告联盟赚钱
  • 做标书有哪些好网站网站关键词排名分析
  • 电子商城网站系统百度收录申请入口
  • 一个微信公众号可以做几个网站大连网络推广