2011-02-11 50 views
0

我創建了一個html代碼查看器。html查看器錯誤

下面是代碼

using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Linq; 
using System.Text; 
using System.Windows.Forms; 
using System.Net; 
using System.IO; 

namespace testa5ermra 
{ 
    public partial class Form1 : Form 
    { 
     public Form1() 
     { 
      InitializeComponent(); 
     } 

     private void button1_Click(object sender, EventArgs e) 
     { 
      string url = UrltextBox.Text; 
      HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); 
      HttpWebResponse response = (HttpWebResponse)request.GetResponse(); 
      StreamReader sr = new StreamReader (response.GetResponseStream()); 
      richTextBox1.Text = sr.ReadToEnd(); 
      sr.Close(); 

     } 
    } 
} 

它工作正常,所有的網頁,除了一個頁面 該頁面(http://www.sharecash.org) 有誰能夠告訴我什麼是之間的不同此頁面和其他頁面 和任何機構可以給我一個代碼,可以讓HTML代碼本頁 我真的搜查每一個地方,每回答,將不勝感激

+4

它是糟糕,我傾向於相信這一切是僅僅是一個微妙的廣告? – AndyPerfect 2011-02-11 21:35:18

回答

0

下載類似Fiddler和監控HTTP消息回去的當你HttpWebRequest那個網站時。

編輯然後發佈您在問題中看到的內容。

0

@ sugerman這裏

> Request Count: 1 
Bytes Sent:  429 (headers:429; body:0) 
Bytes Received: 6,853 (headers:438; body:6415) 

ACTUAL PERFORMANCE 
-------------- 
ClientConnected: 01:56:31.020 
ClientBeginRequest: 01:56:31.027 
ClientDoneRequest: 01:56:31.027 
Gateway Determination: 0ms 
DNS Lookup:   0ms 
TCP/IP Connect:  200ms 
HTTPS Handshake: 0ms 
ServerConnected: 01:56:31.228 
FiddlerBeginRequest: 01:56:31.228 
ServerGotRequest: 01:56:31.242 
ServerBeginResponse: 01:56:33.800 
ServerDoneResponse: 01:56:33.800 
ClientBeginResponse: 01:56:33.800 
ClientDoneResponse: 01:56:33.801 

    Overall Elapsed: 00:00:02.7741587 

RESPONSE CODES 
-------------- 
HTTP/200: 1 

RESPONSE BYTES (by Content-Type) 
-------------- 
text/html: 6,415 
~headers~: 438 

ESTIMATED WORLDWIDE PERFORMANCE 
-------------- 
The following are VERY rough estimates of download times when hitting servers based in WA, USA. 


US West Coast (Modem - 6KB/sec) 
--------------- 
Round trip cost: 0.10s 
Elapsed Time: 1.10s 


Japan/Northern Europe (Modem) 
--------------- 
Round trip cost: 0.15s 
Elapsed Time: 1.15s 


China (Modem) 
--------------- 
Round trip cost: 0.45s 
Elapsed Time: 1.45s 


US West Coast (DSL - 30KB/sec) 
--------------- 
Round trip cost: 0.10s 
Elapsed Time: 0.10s 


Japan/Northern Europe (DSL) 
--------------- 
Round trip cost: 0.15s 
Elapsed Time: 0.15s 


China (DSL) 
--------------- 
Round trip cost: 0.45s 
Elapsed Time: 0.45s