请教Inet编程中的遇到一个奇怪的现象.(我的可用分多,随有效回答数增加不断追分进来)

hujun614 2005-06-27 06:15:47
我访问如下网址,http://sliidn.com,取服务器端反回的页面内容如下.
Header部分 HTTP/1.1 200 OK Date: Mon, 27 Jun 2005 09:07:45 GMT Server: Apache/2.0.46 (Red Hat) Accept-Ranges: bytes Connection: close Transfer-Encoding: chunked Content-Type: text/html
正文HTML部分
<html>
<head>
<title>Welcome Sliidn.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
</head>
<frameset rows="*,0" frameborder="NO" border="0" framespacing="0">
<frame name="ST_mem_index" src="app/member/">
<frame name="ST_func" scrolling="NO" noresize src="../ok.php">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>

在以下的取/app/member/,和/ok.php(上面说的是../ok.php,这里好像也有点问题)内容时也没什么异常的.
但是若使用IE等浏览器访问的时候,会多次使用Get方法取"/"路径的请求出现,不知是怎么回事. 请各位朋友, 高手帮忙分析,指点一下.如能最后解决,本人非常感谢.
...全文
74 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
hujun614 2005-06-29
  • 打赏
  • 举报
回复
那东西好像非得一步一步来的.呵呵,
已经调通了, 谢谢你的参与. 结贴.
hujun614 2005-06-28
  • 打赏
  • 举报
回复
顶帖
Hendy_So 2005-06-28
  • 打赏
  • 举报
回复
程序登录的话,可以不管前面是怎么登录网站的,直接POST登录数据(用户名+密码)就可以了。
hujun614 2005-06-27
  • 打赏
  • 举报
回复
我用的是微软ATC来测试的, 主要问题在于登录的提示他报错误,
服务器返回的头
HTTP/1.1 200 OK Date: Mon, 27 Jun 2005 09:07:49 GMT Server: Apache/2.0.46 (Red Hat) Accept-Ranges: bytes Connection: close Transfer-Encoding: chunked Content-Type: text/html
正文
<SCRIPT language="JavaScript">
alert('Plaese input username/passwd and try again!!');
</SCRIPT>
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/st626/www/lib/pub_library.php:101) in <b>/home/st626/www/app/member/login.php</b> on line <b>38</b><br />
我耍要实现程序登录,然后可以自动抓数据进入数据库.
但是登录的时候报错.我用ATC试运行了一下,ACT记录了不断有对/的请求,所以有点没搞懂.

有人回答,先追50分进来.
Hendy_So 2005-06-27
  • 打赏
  • 举报
回复
我的IE中访问了一次(我用了代理),下面是依次的请求与响应:
GET http://sliidn.com/ HTTP/1.1
Accept: */*
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2)
Host: sliidn.com
Proxy-Connection: Keep-Alive

HTTP/1.1 200 OK
Accept-Ranges: bytes
Transfer-Encoding: chunked
Date: Mon, 27 Jun 2005 11:47:32 GMT
Content-Type: text/html
Server: Apache/2.0.46 (Red Hat)
Via: 1.1 JN-CRC-CACHE (NetCache NetApp/5.6.2D3)

GET http://sliidn.com/app/member/ HTTP/1.1
Accept: */*
Referer: http://sliidn.com
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2)
Host: sliidn.com
Proxy-Connection: Keep-Alive

HTTP/1.1 200 OK
Accept-Ranges: bytes
Transfer-Encoding: chunked
Date: Mon, 27 Jun 2005 11:47:32 GMT
Content-Type: text/html
Server: Apache/2.0.46 (Red Hat)
Via: 1.1 JN-CRC-CACHE (NetCache NetApp/5.6.2D3)

GET http://sliidn.com/ok.php HTTP/1.1
Accept: */*
Referer: http://sliidn.com
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2)
Host: sliidn.com
Proxy-Connection: Keep-Alive

HTTP/1.1 200 OK
Accept-Ranges: bytes
Date: Mon, 27 Jun 2005 11:47:33 GMT
Content-Length: 0
Content-Type: text/html
Server: Apache/2.0.46 (Red Hat)
Via: 1.1 JN-CRC-CACHE (NetCache NetApp/5.6.2D3)

GET http://sliidn.com/style/member/mem_index.css HTTP/1.1
Accept: */*
Referer: http://sliidn.com/app/member/
Accept-Language: zh-cn
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MyIE2)
Host: sliidn.com
Proxy-Connection: Keep-Alive

HTTP/1.1 200 OK
Age: 0
Date: Mon, 27 Jun 2005 11:47:34 GMT
Content-Length: 3254
Content-Type: text/css
Server: Apache/2.0.46 (Red Hat)
Last-Modified: Wed, 06 Apr 2005 06:38:09 GMT
ETag: "109625-cb6-d61bd640"
Via: 1.1 JN-CRC-CACHE (NetCache NetApp/5.6.2D3)

hujun614 2005-06-27
  • 打赏
  • 举报
回复
要说一下的是
IE浏览器访问该网站是连续访问两次"/",
在访问/app/member/及/ok.php之后,又是两次访问"/",后面还有这样的情况.
真的是很奇怪,不知道IE为什么要这么多次重复,不知道是怎么回事,
希望朋友们花点时间跟踪调试一下.
也有可能因为
<frame name="ST_func" scrolling="NO" noresize src="../ok.php">
这个地址有问题?才重复尝试的吗?

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧