loader class : UploadString(string,string) method
Description
Uploads a string to the specified URL.
Syntax
loaderInstance.UploadString(string targetUrl, string uploadData)
Arguments
Class | Name | Description |
string | targetUrl | URL. |
string | uploadData | String that want to upload. |
Return value
Class | Description |
string | Response sent by the server. |
Sample code
1: | loader loa = new loader(); |
2: | string targetUrl = "ftp://..."; |
3: | string uploadData = "any string."; |
4: | string response = loa.UploadString(targetUrl, uploadData); |
Notes
It's a wrapper of the System.Net.WebClient.UploadString(String,String) method.