Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 3rd, 2007, 04:33 AM
Registered User
 
Join Date: Jul 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Automatically download data ?

Can anybody tell me how to Automatically download data from remote site?..
I have user id and passoword of a secured site and I want to fetch data in text format from that site after specific time interval say every Day At 12 am to fillup my database.
 
Old July 3rd, 2007, 05:24 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

  HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(feeduri);
                //httpRequest.UserAgent = @"Mozilla/4.0 (compatible; MSIE 6.0; MSIE 7.0; Windows NT 5.1)";
                httpRequest.UserAgent = browserType;
                HttpWebResponse httpResponse = (HttpWebResponse)httpRequest.GetResponse();
                XmlDocument xmlDocument = new XmlDocument();
                xmlDocument.Load(httpResponse.GetResponseStream()) ;
                httpResponse.Close();

Bijgupt





Similar Threads
Thread Thread Starter Forum Replies Last Post
I can not download c# data security handbook fineboy C# 0 August 16th, 2006 04:43 AM
IS There A Way TO Download Data F Sql To Xml File alyeng2000 ASP.NET 1.0 and 1.1 Professional 4 April 28th, 2005 09:22 AM
How to download automatically in HTML? Edward King HTML Code Clinic 1 March 8th, 2004 08:02 AM
download db data to .xls with asp abbylee26 Classic ASP Databases 2 October 17th, 2003 02:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.