一个http请求发出以后。解决方法
发布时间:2010-05-20 14:01:29 文章来源:www.iduyao.cn 采编人员:星星草
一个http请求发出以后。。。
今天遇到一个问题,就是一个http请求发出以后接下来会做什么?他的request,response方法是怎么传值取值的。。。。求高手帮助。。。
------解决方案--------------------
百度 google中一搜索关键字 http request response 比较专业的解读一版一版
------解决方案--------------------
DNS Lookup
DNS Lookup is the time required to resolve a host name (e.g. www.google.com) into a numeric IP address (e.g. 216.239.59.99).
Connect
Connect is the time required to create a TCP connection to the web server (or proxy). If a secure HTTPS connection is being used this time includes the SSL handshake process. Keep-Alive connections are often used to avoid the overhead of repeatedly connecting to the web server.
Send
Send is the time required to send the HTTP request message to the server and will depend on the amount of data that is sent to the server. For example, long Send times will result from uploading files using an HTTP POST.
Wait
Wait is the idle time spent waiting for a response message from the server. This value includes delays introduced due to network latency and the time required to process the request on the web server.
Receive
Receive is the time taken to read the response message from the server. This value will be depend on the size of the content returned, network bandwidth and whether HTTP compression was used.
------解决方案--------------------
访问web服务器就是向服务器发送请求, request代表客户端向服务器发送的请求, 然后服务器会向客户端做出响度,就是response
------解决方案--------------------
这涉及到了网络底层的数据传输问题了 呵呵
------解决方案--------------------
推荐你一本书 虽然是英文版 但是看起来并不难 HTTP Developer's Handbook
http请求也是在建立了tcp链接之后发字符串消息,你可以通过一些工具比如firebug的net面板看到http请求的内容,包括请求域(HOST),URI(get方法的话包括查询字符串,post方法的话应该是作为请求消息的实体内容)以及一系列http头部。
服务器端的request和response也都是根据这些http消息字符串分析出来的。
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。
其他相似内容:
-
ie6下png图片透明色解析为灰色,如何解决?
<div class="Self-navigation">
<ul>
<li><a href="#" class="login-li">登录...
-
.net 如何载入页面
是这样的,页面分为 1 、top.aspx 2、middle.aspx 3、buttom.aspx
现在就是在index.aspx 不知道如何引用top.asp...
-
ie下面序号只有1
<html>
<head>
<meta charset="gb2312" />
<style>
li {
width:100px;
height:20px;
border:1px dashed red;
}...
-
谈谈Javascript那些操蛋的事(一)?
1. 永远不要写function _name(){…}的形式,要养成var _name=function(){}的习惯。
“Javascri...
-
求解:这个程序为什么只能在ie中正常显示,其他的浏览器都显示不了
<td width="806" valign="top" >
<table width="100%" border="0...
-
Chrome中Margin 的问题
为什么设置的margin值,和实际的margin值,有1px的差别?
这是我设置的值
element.style {
margin-left: 10px;
...
-
關於facebook的奇怪問題
經過很久很久的折騰 我居然發現了這個問題
首先是大家找一個http連接的地址
隨便一個網址 自己加上url=...
-
用VB,VC 写的现有桌面软件,如何做成嵌入到WEB页面那样?
看到一些网站,可以在线编辑WORD文档
也看到一些产品,当然是能连上互联网...
-
关于CAS单点登录的SSL证书问题
最近老大让我实现几个系统的单点登录,我想用CAS实现单点登录,请教一下,SSL证书必须使用吗?如果是公司...
-
动态网页和静态网页的区别
各位大侠:
百度百科,定位动态网页有以下几点:
(1)动态网页一般以数据库技术为基础,可以大大降...