LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2163|回复: 8

为什么有些网址wget下载不了

[复制链接]
发表于 2004-8-12 00:57:23 | 显示全部楼层 |阅读模式
为什么同一个link,ie可以打开,但是用wget就会提示 server error;

比如下面那个连接

http://www.interwetten.com/webcl ... sportid=10&L=EN

HTTP request sent, awaiting response... 500 Internal Server Error
01:02:27 ERROR 500: Internal Server Error.


能帮忙会分析一下原因吗,谢谢
发表于 2004-8-12 01:35:31 | 显示全部楼层
这是我用opera打开出现的错误提示
Server Error in '/WebClient' Application.
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.        

Stack Trace:




[NullReferenceException: Object reference not set to an instance of an object.]
   Interwetten.WebClient.betting.offer.Page_Load(Object sender, EventArgs e) +275
   System.Web.UI.Control.OnLoad(EventArgs e) +67
   System.Web.UI.Control.LoadRecursive() +35
   System.Web.UI.Page.ProcessRequestMain() +731

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
发表于 2004-8-12 01:39:34 | 显示全部楼层
最初由 xiaocong213 发表
这是我用opera打开出现的错误提示

跟我一样 我也用opera
在命令行下用wget,也提示:
Resolving www.interwetten.com... done.
Connecting to www.interwetten.com[213.185.178.21]:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
01:45:21 ERROR 500: Internal Server Error.

奇怪 :ask 要不移动至网络版吧
 楼主| 发表于 2004-8-12 08:47:41 | 显示全部楼层
会不会是此网站只允许windows用户正常使用,而不允许linux用户使用呢??
发表于 2004-8-12 09:19:11 | 显示全部楼层
这是因为该网站用cookie记录了一些信息。
你从首页进入就没有问题,我可以用FireFox进,一点问题都没有。
用wget的时候,服务器收不到这些cookies,当然会出错。
发表于 2004-8-12 09:20:56 | 显示全部楼层
是不是asp这个垃圾!
M$自己的网站都不用这种东西,所以是垃圾。
 楼主| 发表于 2004-8-12 09:58:54 | 显示全部楼层
最初由 Glue 发表
这是因为该网站用cookie记录了一些信息。
你从首页进入就没有问题,我可以用FireFox进,一点问题都没有。
用wget的时候,服务器收不到这些cookies,当然会出错。


有可能
发表于 2004-8-12 13:28:37 | 显示全部楼层
最初由 KornLee 发表
跟我一样 我也用opera

opera好啊,小巧,速度快,比mozilla,firefox都快
不过我的opera字体不好,唉,郁闷ing
发表于 2004-8-13 15:24:17 | 显示全部楼层
我还发现有些网页拒绝wget,比如http://www.chinalinuxpub.com/doc/oreillybookself/
这时可以用-U选项设置User-Agent,欺骗服务器
例如:
wget -U Mozilla/5.0 http://www.chinalinuxpub.com/doc/oreillybookself/
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表