you have to look up for API in your target sites, a web service maybe!
then include it in your projects, and then read their documents to config!
but if you want just upload file to server use this code snippet:
private void SaveTToWeb()
WebClient client = new WebClient();
string myFile = @"C:\file.txt";
client.Credentials = CredentialCache.DefaultCredentials;
client.UploadFile(@"http://myweb.com/projects/idl/Draft Results/RK/myFile", "PUT", myFile);
catch (Exception err)
and if you want to use ftp, read this:
C# ftp upload