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
jure poteko
NA
5
0
Download source code of a page with windows form
Oct 19 2010 3:01 AM
Hi,
i am having some problems with downloading a source code with my win form application. The problem is that when im browsing on the web page i need username and password to get my information. When i try to use this programaticly i dont know how to pass this username and password to the site.
For the sites that does not require username and password i am doing with this
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(@"http://hockey.powerplaymanager.com/");
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream receiveStream = response.GetResponseStream();
StreamReader readStream = new StreamReader(receiveStream, Encoding.UTF8);
StreamWriter sw =new StreamWriter("test.txt");
while ((line=readStream.ReadLine())!=null)
{
sw.WriteLine(line);
}
sw.Close();
Can i somehowe pass username and password to the site?
Hope you get what i want to do.
Thanks
Reply
Answers (
5
)
What is the role of a Proxy in WebService ?
some of My CS file is damaged and I cannot open it again