Sorry, I just meant the curl manpage - lots and lots of useful options (how to use proxies, upload http forms, etc. etc.)
The only manual for applescript I have is the one that came with the developer tools cd - it's installed at /developer/documentation/applescript.
I don't know about how to wrap that into applescript. I'd just write a shell script and run it in the terminal, cuz that's what I know how to do...