|Mar 28, 2011, 05:37 PM||#1|
Reloading a webpage
I'm trying to write an Applescript, but I'm not quire sure how to do it. Basically, there's a web page that I want to keep checking on. It's not live yet, and I want to find out when it's up.
The tricky part is that the webpage redirects if it isn't up yet, so I can't simply reload the page. I want the Applescript to go to the webpage, check to see if it got redirected somewhere else, and if so, load it again. So I need to check to see what page it's currently at, and that's what I can't figure out.
|Mar 28, 2011, 05:56 PM||#2|
IIRC curl (http://curl.haxx.se/docs/manpage.html) won't follow redirects unless you tell it to. It also seems like you can ask it to output how many redirects it was asked to follow in case it does.
EDIT: I just checked this on a site I have registered, but not yet set up hosting for. curl http://parkedsite.com gives no output, while curl -L http://parkedsite.com gives me the Network Solutions "Coming Soon" page.
MBA (13" 1.7 GHz 128GB), UMBP (15" SD 2.8 GHz), UMB (13" 2.4 GHz), iMac (17" Yonah), 32GB iPad 3 WiFi+LTE, 64 GB iPad WiFi, 32 GB iPhone 5, Airport Extreme
Last edited by balamw; Mar 28, 2011 at 06:04 PM.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Webpages are not responding. To visit the selected webpage, all webpages in other tab||Toe||Mac Applications and Mac App Store||0||Sep 16, 2011 12:35 PM|
|scroll up to reload a webpage in Safari||Trixster||Mac Applications and Mac App Store||0||Jul 26, 2011 11:23 AM|
|Soccer Reloaded, Tennis Reloaded & Cricket Reloaded For iPad - Added Features||s.dasaraddi||iPad Apps||0||Jan 25, 2011 03:38 AM|
|Issue: Safari reloading background webpages all the time.||kinchee87||iPod touch||6||Dec 14, 2007 01:17 AM|
All times are GMT -5. The time now is 12:45 AM.