?
Solved

How to call a web page automatically

Posted on 2009-05-14
7
Medium Priority
?
333 Views
Last Modified: 2013-11-07
How to call a web page automatically everyday once at a specific time without any user interaction.
Any help will be appreciated
0
Comment
Question by:dotsandcoms
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 39

Expert Comment

by:abel
ID: 24384631
What about using WebClient? Try this to save it locally (in case you want to reference the output later). You can use the windows scheduler to run your application once a day.

// download googles main page
WebClient Client = new WebClient();
Client.DownloadFile("http://www.google.com", "d:/temp/google.html");

Open in new window

0
 

Author Comment

by:dotsandcoms
ID: 24393716
We are trying to close other related question and we accidently close the question.
0
 
LVL 39

Expert Comment

by:abel
ID: 24393956
aha ;). Np.
0
Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

 

Author Comment

by:dotsandcoms
ID: 24507863
oh, I am so sorry for the late reply,  Abel , can you please help me out with the steps for setting up the window schedular. What i want is to call a web page on whose pageload event i am inserting RSS feeds into my database.

Thanks alot
0
 
LVL 39

Expert Comment

by:abel
ID: 24508764
On Vista, you find it at Start > All Programs > Accessories > System Tools > Task Scheduler (I believe that is the same on other windows, but you can always type "taskschd" in the Run window if you cannot find it).

The Task Scheduler is quite self-explanatory, but quite different on different windows versions. On Vista, you can click "Create Basic Task" and follow the steps of the wizard. In the action step you can simply browse for the little program you created for calling your page.

-- Abel --
0
 

Author Comment

by:dotsandcoms
ID: 24569313
hi abel, is there any other way i can perform the task (calling a webpage automatically )  rather than using window scheduler, as the server on which i have my project does not allow this facility to the client.

Thanks
           
           
0
 
LVL 39

Accepted Solution

by:
abel earned 1500 total points
ID: 24569998
You can of course write your own scheduler tool, shouldn't be so hard, but it's a bit odd if they don't allow you to run an application through the scheduler but they would allow you to create your own scheduler application. The existing scheduler is a time tested and well-supported feature, though it is not hard to create one yourself, it is almost always better to use proven technology then reinventing it yourself.

What you can do yourself is either download another scheduler tool (try google, there are many freeware and open source available) or roll out your own. In C# this is easy, you can simply use the timer control. It takes milliseconds, which means you need to set the timeout value to 86400000 milliseconds to have it wait exactly one day. Run your app, never close it, and the timer does the rest.

-- Abel --


0

Featured Post

Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question