WebClient.UploadString Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 8.0.9673)
UploadString(String, String)
Uploads a string to provided URI as a new resource.
Declaration
public string UploadString(string uri, string data)
Parameters
| Type | Name | Description |
|---|---|---|
| String | uri | Uri to send resource to. |
| String | data | String containing new resource. |
Returns
| Type | Description |
|---|---|
| String | Response of the upload operation. |
Remarks
HTTP method POST is used.
UploadString(Uri, String)
Uploads a string to provided URI as a new resource.
Declaration
public string UploadString(Uri uri, string data)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | uri | Uri to send resource to. |
| String | data | String containing new resource. |
Returns
| Type | Description |
|---|---|
| String | Response of the upload operation. |
UploadString(String, String, String)
Uploads a string to provided URI as a new resource.
Declaration
public string UploadString(string uri, string method, string data)
Parameters
| Type | Name | Description |
|---|---|---|
| String | uri | Uri to send resource to. |
| String | method | HTTP method to use when sending the data. |
| String | data | String containing new resource. |
Returns
| Type | Description |
|---|---|
| String | Response of the upload operation. |
Remarks
HTTP method POST is used when method is set to null (Nothing in VB).
UploadString(Uri, String, String)
Uploads a string to provided URI as a new resource.
Declaration
public string UploadString(Uri uri, string method, string data)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | uri | Uri to send resource to. |
| String | method | HTTP method to use when sending the data. |
| String | data | String containing new resource. |
Returns
| Type | Description |
|---|---|
| String | Response of the upload operation. |
Remarks
HTTP method POST is used when method is set to null (Nothing in VB).