Windows Application interacting with web site ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi ther

I've had a search on quite a few sites but failed to find any information on creating a windows application that interacts with web sites. What I mean is developing a windows app that logs into a web site (that uses forms/cookies authentication) and retrieves certain information

Any ideas or pointers

Cheers!
 
Sounds like you want to invest in Web Services. However, the web site needs
to support data transfer via Web Services. Don't know if you have the
ability to control that or not, but it is the easiest and most powerful way
to do what you are looking to do.

The other alternative is to create a WebRequest object, fill in the URL,
etc. , and execute it. This will contact the web server as if the browser
were doing it, and you'll get a web response back, which contains the
response headers and the response body (you'll need to trap for server error
responses as well). If the body is HTML, you will have to parse the info out
that you need.

-Rob Teixeira [MVP]

VK said:
Hi there

I've had a search on quite a few sites but failed to find any information
on creating a windows application that interacts with web sites. What I mean
is developing a windows app that logs into a web site (that uses
forms/cookies authentication) and retrieves certain information.
 
Hi there

I've had a search on quite a few sites but failed to find any information on creating a windows application that interacts with web sites. What I mean is developing a windows app that logs into a web site (that uses forms/cookies authentication) and retrieves certain information.

Any ideas or pointers?

Cheers!

Check out the HttpWebRequest class, which includes a Cookie container,
and an interface for supplying credentials (such as BASIC www-auth),
among lots of other things.

It should have everything you'll need to interact with a website.

// CHRIS
 
* "=?Utf-8?B?Vks=?= said:
I've had a search on quite a few sites but failed to find any
information on creating a windows application that interacts with web
sites. What I mean is developing a windows app that logs into a web site
(that uses forms/cookies authentication) and retrieves certain
information.

Have a look at the 'WebRequest' class and its 'Credientials' property.
 
Back
Top