Curl Problems

Normally I can curl away from applescript, but today it gave me this error

do shell script “curl http://www.geneseo.edu
→ “Can’t make some data into the expected type.”

So I was wondering, what would trigger this error? Page size? Perhaps the page was too big to be returned as a string?

Anyone know what would cause this error and have any solutions?

I don’t know what might have triggered the error but I just ran your script and didn’t encounter any problems. Maybe there was a network problem.

Stephen, It works on my machine also. It returns the html source code for the given page in the Script Editor results pane.

Hmm. That’s odd.

It curl’s fine in Terminal, but gives me that error in script editor

I wonder if curl via AppleScript uses a different port than curl via Terminal. If so, maybe it’s a firewall/proxy issue.