Windows Application interacting with web site ?

Windows Application interacting with web site ?

Post by Vks » Tue, 30 Dec 2003 06:11:10


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!
 
 
 

Windows Application interacting with web site ?

Post by Rob Teixei » Tue, 30 Dec 2003 06:26:47

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]



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.

 
 
 

Windows Application interacting with web site ?

Post by Chris Mors » Tue, 30 Dec 2003 07:20:34

On Sun, 28 Dec 2003 13:11:10 -0800, "VK"



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
 
 
 

Windows Application interacting with web site ?

Post by hirf-spam- » Tue, 30 Dec 2003 08:22:23

* "=?Utf-8?B?Vks=?=" < XXXX@XXXXX.COM > scripsit:

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

--
Herfried K. Wagner [MVP]
< http://www.yqcomputer.com/ ;