Using CURL and PHP
CURL is built-in to the usual up-to-date PHP distributions. (You may need to enable it in php.ini). CURL lets you programmatically transfer files using all the usual protocols, such as HTTP and FTP. Among other things, it lets you write PHP to simulate posting forms. In other words, it's useful for some…