[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to call a web page automatically

Posted on 2009-05-14
7
Medium Priority
?
335 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

649 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