Originally Posted by Fou-Lu
You can use either if you intend to use TLS. Web services will take more work since you need to write server and client, while curl or sockets would simply let you pump data through as a post.
Why can't you use sftp? How do you plan to get the files up there in the first place?
The files are held on server2 and they need to go to server1 to be displayed on a webpage. However server1 does not have sftp as the hosting company do not provide it or have locked it off.
If I use cURL, does server1 need an html form/php to accept the posted file?