TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
joby
NA
6
0
how this code get executed,explanation please
Sep 30 2009 9:53 AM
HttpWebRequest
request = (
HttpWebRequest
)
WebRequest
.Create(seed);
seed =
null
;
HttpWebResponse
response = (
HttpWebResponse
)request.GetResponse();
Stream
stream = response.GetResponseStream();
StreamReader
reader =
new
StreamReader
(stream);
str = reader.ReadToEnd();
currloc = 0;
int
i=0;
do
{
link = FindURL(str,
ref
currloc);
MessageBox
.Show(link);
WebClient
wc =
new
WebClient
();
wc.Proxy =
null
;
#region
#endregion
wc.DownloadFile(link,i+
".html"
);
if
(link !=
null
)
{
seed =
string
.Copy(link);
}
i++;
}
while
(link.Length > 0);
}
while
(seed !=
null
);
}
catch
(
Exception
ex)
{
MessageBox
.Show(ex.Message);
}
}
Reply
Answers (
1
)
Tooltip display delay
what is the use of WebHeaderCollection while downloading a web site,explanation