I’ve been having problems when trying to use curl, over a network, as below.
I’ve tried the same thing whilst sat at home and it works instantly with a text file being created.
do shell script "curl -f 'http://www.thisWebsite.co.uk' -o '/Users/thisUser/Downloads/thisTextFile.txt'"
I’ve tried it direct from Terminal and it still seems to time-out.
Is there something different I need to do with the curl command?
And, is there a way to easily get the result into an AS variable or do I have to read the resultant text file?
Thanks in advance.
I tried the code below and that returns true and the ip address of the website?
check_net() on check_net() try set the_URL to "http://www.theWebsite.co.uk" as URL set dotted_ to dotted decimal form of host of the_URL --> this will return the IP address if there is a live connection return true & " " & dotted_ on error return false end try end check_net
Could it a permissions error with the txt file I’m trying to create?