Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
5
Reply
Download source code of a page with windows form
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
jure poteko
13y
8k
1
Reply
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
Post
Reset
Cancel
Answers (
5
)
Next Recommended Forum
What is the role of a Proxy in WebService ?
some of My CS file is damaged and I cannot open it again