Why is curl so slow?

This curl script, to be used in FileMaker, eventually returns the information from Yahoo, if you have the patience - over a minute - and with a good connection.

set whichOne to "AAPL"
set myquote to do shell script "curl " & quoted form of ("http://download.finance.yahoo.com/d/quotes.csv?s=" & whichOne & "&f=l1d1&e=.csv")
set theResult to words of myquote
set thePrice to item 1 of theResult
set theDate to (item 2 of theResult & "/" & item 3 of theResult & "/" & item 4 of theResult)

Any thought?



Takes less than a second on my system.

works right away for me too, but i get an “Invalid Date Error”

I was having the same problem.

do shell script "curl ... "

to any URL was taking at least a minute and a half. I found some fixes here and there relating to Leopard and IPV6 and DNS settings:



I made some adjustments:

  1. turn OFF IPv6 in my system preferences
  2. hard-coded OPENDNS servers into my router

I’m not sure what specifically fixed my issues, but curl is snappy now. The script in the OP’s post takes no time at all to run now.

Model: Intel MacBookPro
Browser: Safari 523.10.6
Operating System: Mac OS X (10.5)