loader class : UploadString(string,string) method

Description

Uploads a string to the specified URL.

Syntax

loaderInstance.UploadString(string targetUrl, string uploadData)

Arguments

ClassNameDescription
stringtargetUrlURL.
stringuploadDataString that want to upload.

Return value

ClassDescription
stringResponse 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.

Links for reference

Copyright © Cooker All rights reserved.