added a timeout for the curl parameter; otherwise the program
often hangs when a URL doesn't respond to http.