标题是哗众取宠!Sorry SOhu& Sina!
=============================================
我( SOHU )的结果是正常的。
telnet www.sohu.com 80后
运行Get www.sohu.com后,返回了我想得到的Sohu主页信息!但是( SINA )的结果是不正常的。
Telnet www.sina.com.cn 80 后,
运行Get www.sina.com.cn,系统返回如下信息
-------------------------------------------------------
HTTP/1.0 400 Bad Request
Server: squid/2.5.STABLE1-20021223
Mime-Version: 1.0
Date: Mon, 09 Jun 2003 08:31:29 GMT
Content-Type: text/html
Content-Length: 1208
Expires: Mon, 09 Jun 2003 08:31:29 GMT
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from gro37-1.sina.com.cn
X-Cache-Lookup: NONE from gro37-1.sina.com.cn:80
Proxy-Connection: close
--------------------------------------------------------返回的页面如下:
-----------------------------------------------------------------------
ERROR
The requested URL could not be retrievedWhile trying to retrieve the URL: http://www.sina.com.cn/ The following error was encountered: Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. Your cache administrator is webmaster.
Generated Mon, 09 Jun 2003 08:34:58 GMT by gro37-1.sina.com.cn (squid/2.5.STABLE1) ------------------------------------------------------------------------
在此请教各位大侠。或者大家帮忙做个测试也可以。这个问题真的急死我了!
=============================================
我( SOHU )的结果是正常的。
telnet www.sohu.com 80后
运行Get www.sohu.com后,返回了我想得到的Sohu主页信息!但是( SINA )的结果是不正常的。
Telnet www.sina.com.cn 80 后,
运行Get www.sina.com.cn,系统返回如下信息
-------------------------------------------------------
HTTP/1.0 400 Bad Request
Server: squid/2.5.STABLE1-20021223
Mime-Version: 1.0
Date: Mon, 09 Jun 2003 08:31:29 GMT
Content-Type: text/html
Content-Length: 1208
Expires: Mon, 09 Jun 2003 08:31:29 GMT
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from gro37-1.sina.com.cn
X-Cache-Lookup: NONE from gro37-1.sina.com.cn:80
Proxy-Connection: close
--------------------------------------------------------返回的页面如下:
-----------------------------------------------------------------------
ERROR
The requested URL could not be retrievedWhile trying to retrieve the URL: http://www.sina.com.cn/ The following error was encountered: Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. Your cache administrator is webmaster.
Generated Mon, 09 Jun 2003 08:34:58 GMT by gro37-1.sina.com.cn (squid/2.5.STABLE1) ------------------------------------------------------------------------
在此请教各位大侠。或者大家帮忙做个测试也可以。这个问题真的急死我了!
是HTML格式的文件!大家也可以自己运行一下这个命令的!
1.cmd
2.telnet www.sina.com.cn
进入后get www.sina.com.cn (无回显)
然后连续敲2下回车。
根本就不让你telnet,你试有什么用
命令如下:
telnet www.sina.com.cn 80
get www.sina.com.cn <crlf><crlf>
给你介绍一个地方:
http://www.longker.com 浪客会员8000多人
http://www.isgrey.com/bbs/index.php 牛族,真是很牛!!
楼主你在delphi里编程只需要使用:NMHTTP1 和memo1控件试试下面代码
NMHTTP1.InputFileMode:=false;
NMHTTP1.OutputFileMode:=false;
// NMHTTP1.Proxy:='192.168.0.1';
// NMHTTP1.ProxyPort:=808;
NMHTTP1.Get('www.sina.com');
Memo1.Text:=NMHTTP1.Body;
这样的语句报错.但是在其他大部分网站可以!
GET WWW.SOHU.COM后有如下的信息:HTTP/1.0 400 Bad Request
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 1541<html><head>
<title>Information Alert</title>
</head><body bgcolor="white">
<div align="center"><center><table border="0" cellpadding="2" frame height="199" style="margin-top: 1px; mar
gin-bottom: 1px; padding-top: 1px; padding-bottom: -1px">
<tr>
<td height="34" align="center"><font color="black" face="Arial Bold" size="4
">
<b><p align="center"></b></font><font face="Intrepid" size="6" color="#00008
0">
<strong>Information Alert </strong></font></td>
</tr>
<tr>
<td height="20" align="center"><img height="8" width="445" src="http://192.1
68.10.3:1959/data/alertbar.gif"></td>
</tr>
<tr>
<td height="24" width="444" bgcolor="white" align="center">
<p align="left">
<b><br><font color="black" face="Comic Sans MS">Status</font></b>
<font color="#ff0033" face="Comic Sans MS"><b>: </b></font><font color="blac
k" face="Comic Sans MS">400 Bad Request </font>
</p>
<p align="left">
<font color="black" face="Comic Sans MS"><b>Description</b></font>
<font color="#ff0033" face="Comic Sans MS"><b>: </b></font><font color="blac
k" face="Comic Sans MS">Invalid request-line URI. The request that was received
does not appear to be a valid HTTP request. Please verify that your application
uses HTTP.</font>
</p>
<br>
<br>
</font></td>
</tr>
<tr>
<td width="444" height="10" align="center"><img height="8" width="445" src="
http://192.168.10.3:1959/data/alertbar.gif"></td>
</tr>
</table>
</center></div>
</body>
</html>
get www.sina.com.cn后HTTP/1.0 400 Bad Request
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 1541<html><head>
<title>Information Alert</title>
</head><body bgcolor="white">
<div align="center"><center><table border="0" cellpadding="2" frame height="199" style="margin-top: 1px; mar
gin-bottom: 1px; padding-top: 1px; padding-bottom: -1px">
<tr>
<td height="34" align="center"><font color="black" face="Arial Bold" size="4
">
<b><p align="center"></b></font><font face="Intrepid" size="6" color="#00008
0">
<strong>Information Alert </strong></font></td>
</tr>
<tr>
<td height="20" align="center"><img height="8" width="445" src="http://192.1
68.10.3:1959/data/alertbar.gif"></td>
</tr>
<tr>
<td height="24" width="444" bgcolor="white" align="center">
<p align="left">
<b><br><font color="black" face="Comic Sans MS">Status</font></b>
<font color="#ff0033" face="Comic Sans MS"><b>: </b></font><font color="blac
k" face="Comic Sans MS">400 Bad Request </font>
</p>
<p align="left">
<font color="black" face="Comic Sans MS"><b>Description</b></font>
<font color="#ff0033" face="Comic Sans MS"><b>: </b></font><font color="blac
k" face="Comic Sans MS">Invalid request-line URI. The request that was received
does not appear to be a valid HTTP request. Please verify that your application
uses HTTP.</font>
</p>
<br>
<br>
</font></td>
</tr>
<tr>
<td width="444" height="10" align="center"><img height="8" width="445" src="
http://192.168.10.3:1959/data/alertbar.gif"></td>
</tr>
</table>
</center></div>
</body>
</html>
遗失对主机的连接。
http://expert.csdn.net/Expert/topic/1905/1905869.xml?temp=.880932
主 题: -=-=-=- (一定加到1000分)求IE浏览器 的访问机制!?-=-=-=-
作 者: zcom (@黑糊糊的纸)
等 级:
信 誉 值: 99
所属论坛: Delphi 基础类
问题点数: 100
回复次数: 12
发表时间: 2003-06-12 09:48:22
1.我在IE中输入 www.sina.com.cn
2.IE解释为 Http://www.sina.com.cn
3.IE通过TCP Socket与主机:www.sina.com.cn(端口80)进行连接请求
4。www.sina.com.cn:80 接受我的电脑上IE的连接请求;
5。IE向www.sian.com.cn:80发送 Get http://www.sina.com.cn/的命令,索要页面
6。www.sian.com.cn:80接受 IE的 Get命令,执行
《7》但是www.sian.com.cn返回的是 Http 1.1 400 Request Error
《8》这就标志着没有该页面,www.sian.com.cn返回异常信息页面但是:我们的IE多是能够打开www.sian.com.cn的,以上的1-8究竟是什么地方错了呢?
还是存在以下的怀疑:1。IE存在另外一个数据监听端口,当www.sian.com.cn发送异常页面时也向该端口发送正确的页面的所在URL?
2。...========================
该问题揭贴后一定加分,加到1000分!一定
你用最早的IE查看可以肯定也会报错。
http://expert.csdn.net/Expert/topic/1905/1905869.xml?temp=.880932
主 题: -=-=-=- (一定加到1000分)求IE浏览器 的访问机制!?-=-=-=-
作 者: zcom (@黑糊糊的纸)
等 级:
信 誉 值: 99
所属论坛: Delphi 基础类
问题点数: 100
回复次数: 12
发表时间: 2003-06-12 09:48:22
1.我在IE中输入 www.sina.com.cn
2.IE解释为 Http://www.sina.com.cn
3.IE通过TCP Socket与主机:www.sina.com.cn(端口80)进行连接请求
4。www.sina.com.cn:80 接受我的电脑上IE的连接请求;
5。IE向www.sian.com.cn:80发送 Get http://www.sina.com.cn/的命令,索要页面
6。www.sian.com.cn:80接受 IE的 Get命令,执行
《7》但是www.sian.com.cn返回的是 Http 1.1 400 Request Error
《8》这就标志着没有该页面,www.sian.com.cn返回异常信息页面但是:我们的IE多是能够打开www.sian.com.cn的,以上的1-8究竟是什么地方错了呢?
还是存在以下的怀疑:1。IE存在另外一个数据监听端口,当www.sian.com.cn发送异常页面时也向该端口发送正确的页面的所在URL?
2。...========================
该问题揭贴后一定加分,加到1000分!一定
而www.sohu.com是apache代理=================================
我看了一下,所有squid代理的全都有上述的问题!