Downloading image from web

Hello all,
I’m trying to use curl to download an image from the internet but its just seems to be returning the curl man page or something like that -_-

I successfully parsed the url, but I can’t get the curl command to download it. Any help would be appreciated!

set source to (do shell script "curl " & "http://weather.yahoo.com/forecast/CAXX0025.html")
set AppleScript's text item delimiters to {"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"}
set temp to text item 2 of source
set AppleScript's text item delimiters to {"', sizingMethod='crop');"}
set temp to text item 1 of temp
do shell script "curl -f" & quoted form of (temp) & "-o ~/Desktop/WeatherImage.jpg"


Model: MacBook Pro
AppleScript: 2.1
Browser: Safari 531.9
Operating System: Mac OS X (10.6)

Hi Hendo,

consider the proper space characters before and after the URL


do shell script "curl -f " & quoted form of (temp) & " -o ~/Desktop/WeatherImage.png" --> the image is PNG

Ah that did the trick, thanks a lot!