Loupe - Log - Monitor - Resolve
Gibraltar.Server.Client Namespace / WebChannel Class / UploadString Method
The URI of the resource to receive the string. This URI must identify a resource that can accept a request sent with the method requested.
The HTTP method used to send the string to the resource. If null, the default is POST
The content type to inform the server of for this file
The string to be uploaded.
Optional. The number of seconds to wait for a response to the request.

In This Topic
    UploadString Method (WebChannel)
    In This Topic
    Uploads the specified string to the specified resource, using the specified method
    Syntax
    'Declaration
     
    
    <AsyncStateMachineAttribute(Gibraltar.Server.Client.WebChannel/d__67)> 
    Public Function UploadString( _ 
       ByVal relativeUrl As String, _ 
       ByVal method As HttpMethod, _ 
       ByVal contentType As String, _ 
       ByVal data As String, _ 
       ByVal timeout As Nullable(Of Integer) _ 
    ) As Task(Of String)
    [AsyncStateMachine(Gibraltar.Server.Client.WebChannel/d__67)] 
    public Task<string> UploadString( 
       string relativeUrl, 
       HttpMethod method, 
       string contentType, 
       string data, 
       Nullable<int> timeout 
    )

    Parameters

    relativeUrl
    The URI of the resource to receive the string. This URI must identify a resource that can accept a request sent with the method requested.
    method
    The HTTP method used to send the string to the resource. If null, the default is POST
    contentType
    The content type to inform the server of for this file
    data
    The string to be uploaded.
    timeout
    Optional. The number of seconds to wait for a response to the request.

    Return Value

    A string containing the body of the response from the resource
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also