Reading file from internet

Hi, I would like to know if I can read and write from a file hosted in the Internet with AppleScript.

I have My one domain with yahoo www.something.com, I have used transmit to connect to yahoo web hosting and created a folder and added a file myfile.txt path looks like this:

www.something.com/folder/myfile.txt

Can I use and applescript to read from this file and then write back to it?

Thank you for your time!

Hi,

use cURL


property fileName : "myfile.txt"
property serverPath : "[url=http://www.something.com/folder/]www.something.com/folder/[/url]"

set localPath to POSIX path of (path to desktop) & fileName

-- download
do shell script "curl -o " & quoted form of localPath & space & quoted form of (serverPath & fileName)

--upload
do shell script "curl -T " & quoted form of localPath & space & quoted form of (serverPath & fileName)

cURL is very flexible, you can create directories as well as passing authentication credentials