By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,320 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy. windows application that connects to the net.

P: n/a

I am completely new to the windows platform and the .net technologies.
I have to pick up on a real fast track to develop industry code.
For my own learning purposes, I am writing a small application -

A typical windows application in which

contains a form with a button. When the button is clicked the
application -

1. must connect to a series of websites, and extract certain
information from the webpages and present it in textual format on the
form in the windows application.

2. must log in to my yahoo and gmail accounts, do nothing and log out.

Typically, I am not worried about the usre interface aspect of the
application but more about the 'Connectivity' techniques.

If someone could guide me in the right direction, it would help me get
onto a rapid start :-)

Labrynth !

Feb 10 '06 #1
Share this Question
Share on Google+
2 Replies

P: n/a
I don't know if this code is very efficient, but here's a solution that has
worked for me...
Dim PageAddress As String = "

'Send a request to the site.
Dim myRequest As HttpWebRequest = CType(WebRequest.Create(PageAddress),

'Get a response from the site.
Dim myResponse As HttpWebResponse = CType(myRequest.GetResponse(),

'Get the data in stream format
Dim PageStream As Stream = myResponse.GetResponseStream()
Dim srPage As New StreamReader(PageStream, Encoding.UTF8)

'Read the contents using a buffer, or all at once, your preference.
Dim Contents As String = srPage.ReadToEnd()

'Extract information from the contents

'Clean up


As far as logging into Yahoo! and Gmail accounts is concerned, that would
require authentication with a username and password. And I'm not sure how to
implement that. (If it is possible, since their servers would check for the


Feb 10 '06 #2

P: n/a
Thanks! I lifted off the code u worked.. I did implement a
different version later on.. using the WebClient class, though the one
that you presented here seems to be a better way !

Feb 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.