Curl queries...

Hi there,

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 '' -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?

on check_net()
		set the_URL to "" 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?

Looks like proxy authentication settings! :slight_smile:

Not sure how I tie them in with curl but at least I know what the problem was.