一、httpwww是什么
HTTP(full name: Hypertext Transfer Protocol,译名:超文本传输协议)是着眼于 Web 应用之间的通信的一种网络协议。而httpwww,即在浏览器中输入httpwww时,实际上是在请求一个网址(URL,Uniform Resource Locator),通信协议即使用HTTP。
在网络上有成千上万的网站,httpwww只是其中的一种。它是一种通用的 URL,http代表协议类型,www则是网站的子域名。许多网站都使用了类似的 URL,比如http://www.baidu.com、http://www.taobao.com等。
二、httpwww的优势
相比于其他的通信协议,HTTP具有以下优势:
- 与其他常用协议相容,更加兼容性和多样性
- 自带缓存机制,避免了服务器端频繁的请求响应负担
- 其Header标签中可以加入Cookie等自定义信息,提高了更多应用的场景需求
- 安全,HTTP协议支持HTTPS协议,让访问更加安全可靠
三、httpwww的应用
httpwww在互联网中应用广泛,下面列出了一些使用httpwww的具体例子:
1、百度搜索引擎
<form id="form" name="f" action="http://www.baidu.com/s" class="fm" onsubmit="return false;" target="_blank"> <br> <input type="text" id="kw" name="wd" autocomplete="off" maxlength="100"> <input type="submit" value="百度一下" style=""> <br> </form>
在百度搜索引擎中,输入关键字并点击“百度一下”按钮时,会在浏览器中请求http://www.baidu.com/s网址,使用HTTP协议进行通信。
2、京东电商平台
<form id="top-search" class="search-form" action="http://search.jd.com/Search" method="get" target="_blank">
<input type="text" class="text" id="key" name="keyword" autocomplete="off">
<input type="submit" class="button" value="">
</form>
在京东电商平台中,搜索框中输入关键字并点击“搜索”按钮时,会在浏览器中请求http://search.jd.com/Search网址,使用HTTP协议进行通信。
3、新浪微博社交平台
<form method="post" action="http://www.weibo.com/ajax/login/sso/login.php?framelogin=1&callback=parent.sinaSSOController.feedBackUrlCallBack" target="sinaSSOController" accept-charset="UTF-8">
<input type="text" name="username" class="W_input" node-type="username" value="">
<input type="password" name="password" class="W_input" node-type="password">
<input type="submit" class="W_btn_a btn_32px" value="登录">
</form>
在新浪微博社交平台中,输入账号密码并点击“登录”按钮时,会在浏览器中请求http://www.weibo.com/ajax/login/sso/login.php?framelogin=1&callback=parent.sinaSSOController.feedBackUrlCallBack网址,使用HTTP协议进行通信。
原创文章,作者:CFEZ,如若转载,请注明出处:https://www.506064.com/n/146982.html
微信扫一扫
支付宝扫一扫