2010-12-05 26 views
4

http://121.199.111.177Ubuntuでwgetを使用してこのページを取得できないのはなぜですか?

私はwin7(IE8)を使用してこのURLにアクセスしていますが、私はそのページを入手できます。

しかし、私がwgetを使用している場合や、ChromeやFirefoxでUbuntuデスクトップを使用している場合、私は何も取得できません。このよう

[email protected]:~# wget 121.199.111.177 
--07:57:52-- http://121.199.111.177/ 
      => `index.html.1' 
Connecting to 121.199.111.177:80... connected. 
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. 
Retrying. 

私は、ユーザーエージェントを使用してみましたが、まだ動作しません:

[email protected]:~# wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)" http://121.199.111.177/ 
--08:08:04-- http://121.199.111.177/ 
      => `index.html.1' 
Connecting to 121.199.111.177:80... connected. 
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. 
Retrying. 

なぜ?このページでwgetを使用するにはどうすればよいですか?

+0

Firefox 3.5では、それはまた、動作しない – mpapis

+0

は、それはWindows上のFirefoxで動作しますか? – robert

+0

mpapis、はい、このサイトは窓のみたいですが、それは変です – Koerr

答えて

7

エラーコード500は内部サーバーエラーです。 Wgetはヘッダーでこのエラーコードを読み取り、コンテンツを取得することを邪魔しません。したがって、修正が必要なサーバーに問題があります。

$ wget -S http://121.199.111.177/ 
--2010-12-05 02:18:32-- http://121.199.111.177/ 
Connecting to 121.199.111.177:80... connected. 
HTTP request sent, awaiting response... 
    HTTP/1.1 500 Internal Server Error 
    Cache-Control: private 
    Content-Type: text/html; charset=utf-8 
    Server: Microsoft-IIS/7.5 
    X-Powered-By: ASP.NET 
    X-UA-Compatible: IE=EmulateIE7 
    Date: Sun, 05 Dec 2010 00:19:02 GMT 
    Connection: keep-alive 
    Content-Length: 4722 
2010-12-05 02:18:49 ERROR 500: Internal Server Error. 

一部のtelnetデバッグは、上記に同意する:Linux上

$ telnet 121.199.111.177 80 
Trying 121.199.111.177... 
Connected to 121.199.111.177. 
Escape character is '^]'. 
GET/HTTP/1.0 

HTTP/1.1 500 Internal Server Error 
Cache-Control: private 
Content-Type: text/html; charset=utf-8 
Server: Microsoft-IIS/7.5 
X-Powered-By: ASP.NET 
X-UA-Compatible: IE=EmulateIE7 
Date: Sun, 05 Dec 2010 00:36:02 GMT 
Connection: close 
Content-Length: 4722 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>IIS 7.5 详细错误 - 500.19 - Internal Server Error</title> 
<style type="text/css"> 
<!-- 
body{margin:0;font-size:.Connection closed by foreign host. 
+0

@ Zenofoまた、同じ内容の500を返します。 – marcog

+1

@ Zenofo IEでまったく同じことが起こっています。サーバー側にエラーがあります。あなたはクライアント側でこれを修正することはできません。 – marcog

+0

@marcogに感謝、あなたは素晴らしいです! :) – Koerr

関連する問題