Home Cooker Classes Others Rice CookerGX
Classes  >  loader  >  UploadString(string,string)
loader class : UploadString(string,string) method

Description

Uploads a string to the resource with the specified URL.

Syntax

loaderInstance.UploadString(string targetUrl, string uploadData)

Arguments

ClassNameDescription
stringtargetUrlURL of a resource that will be uploaded.
stringuploadDataString that want to upload.

Return value

ClassDescription
stringResponse sent by the server.

Sample code

//anyLoader is a instance of loader type.

string targetUrl = "ftp://localhost/anyfile.txt";

string uploadData = "any string.";

string response = anyLoader.UploadString(targetUrl, uploadData);

Notes

It's a wrapper of the System.Net.WebClient.UploadString(String,String).

Links for reference

Copyright © Rice All rights reserved.