Leadtools.Jpip.RequestEncoder Namespace > HttpRequestEncoder Class : Encode Method |
public HttpWebRequest Encode( RequestFields fields, string path, byte[] postedData )
'Declaration Public Function Encode( _ ByVal fields As RequestFields, _ ByVal path As String, _ ByVal postedData() As Byte _ ) As HttpWebRequest
'Usage Dim instance As HttpRequestEncoder Dim fields As RequestFields Dim path As String Dim postedData() As Byte Dim value As HttpWebRequest value = instance.Encode(fields, path, postedData)
public: HttpWebRequest^ Encode( RequestFields^ fields, String^ path, array<byte>^ postedData )
If postedData is specified, the System.Net.HttpWebRequest will be created with a POST method and all fields will be encoded to the message body.
You can use the postedData parameter to optimize the process of encoding when sending cache information.
If postedData is null the System.Net.HttpWebRequest will be created with a Get method with the fields encoded in the request URL.