Click here to Skip to main content
16,013,918 members
Home / Discussions / C#
   

C#

 
GeneralDrawing Charts Pin
26-Apr-02 14:19
suss26-Apr-02 14:19 
GeneralRe: Drawing Charts Pin
James T. Johnson26-Apr-02 16:58
James T. Johnson26-Apr-02 16:58 
GeneralRe: Drawing Charts Pin
Nick Parker26-Apr-02 18:13
protectorNick Parker26-Apr-02 18:13 
QuestionHow can I...? Pin
Vasti26-Apr-02 10:02
Vasti26-Apr-02 10:02 
AnswerRe: How can I...? Pin
Tom Archer26-Apr-02 10:10
Tom Archer26-Apr-02 10:10 
AnswerRe: How can I...? Pin
Vlad Beu26-Apr-02 11:08
Vlad Beu26-Apr-02 11:08 
GeneralRe: How can I...? Pin
Tom Archer26-Apr-02 11:15
Tom Archer26-Apr-02 11:15 
QuestionIs this a c# bug? Pin
Vlad Beu26-Apr-02 9:47
Vlad Beu26-Apr-02 9:47 
Take a look at the following c# code and test it:

using System;
using System.IO;
using System.Net;
using System.Text;

namespace csharp_station.howto
{
///
/// Fetches a Web Page
///

class WebFetch
{
static void Main(string[] args)
{
byte[] buf = new byte[8192];

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http:\\www.csharp-station.com");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

Stream resStream = response.GetResponseStream();

int count = resStream.Read(buf, 0, buf.Length);

Console.WriteLine(Encoding.ASCII.GetString(buf, 0, buf.Length));

resStream.Close();
}
}
}

I expected that the output to be the entire content of Html page that i have requested , but unfortunetlly it returns only little pieces of the Html code.
I would be thankfull to anyone who helps me to fix this
problem



Poke tongue | ;-P
AnswerRe: Is this a c# bug? Pin
Tom Archer26-Apr-02 10:14
Tom Archer26-Apr-02 10:14 
GeneralFor Tom Archer Pin
Vlad Beu26-Apr-02 10:20
Vlad Beu26-Apr-02 10:20 
GeneralRe: For Tom Archer Pin
Tom Archer26-Apr-02 10:43
Tom Archer26-Apr-02 10:43 
GeneralRe: For Tom Archer Pin
Albert Pascual26-Apr-02 11:48
sitebuilderAlbert Pascual26-Apr-02 11:48 
GeneralRe: For Tom Archer Pin
Tom Archer26-Apr-02 12:02
Tom Archer26-Apr-02 12:02 
GeneralRe: For Tom Archer Pin
Albert Pascual26-Apr-02 12:30
sitebuilderAlbert Pascual26-Apr-02 12:30 
GeneralRe: For Tom Archer Pin
Tom Archer26-Apr-02 12:38
Tom Archer26-Apr-02 12:38 
GeneralRe: For Tom Archer Pin
Albert Pascual26-Apr-02 12:44
sitebuilderAlbert Pascual26-Apr-02 12:44 
GeneralRe: For Tom Archer Pin
Tom Archer26-Apr-02 12:51
Tom Archer26-Apr-02 12:51 
AnswerRe: Is this a c# bug? Pin
Vlad Beu26-Apr-02 10:53
Vlad Beu26-Apr-02 10:53 
GeneralRe: Is this a c# bug? Pin
Tom Archer26-Apr-02 11:00
Tom Archer26-Apr-02 11:00 
GeneralAPI wrapper in C# Pin
HG26-Apr-02 8:32
HG26-Apr-02 8:32 
GeneralRe: API wrapper in C# Pin
Albert Pascual26-Apr-02 8:58
sitebuilderAlbert Pascual26-Apr-02 8:58 
GeneralRe: API wrapper in C# Pin
HG26-Apr-02 20:49
HG26-Apr-02 20:49 
Generalmouse disappears when typing into combobox Pin
temujin26-Apr-02 8:02
temujin26-Apr-02 8:02 
GeneralSimilar to CHAR ( ) Pin
abdul26-Apr-02 2:25
abdul26-Apr-02 2:25 
GeneralRe: Similar to CHAR ( ) Pin
[James Pullicino]26-Apr-02 2:31
[James Pullicino]26-Apr-02 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.