Azure Integrator V2 - Online Help
Azure Integrator V2
Questions / Feedback?

PostData Property

The data to post with the URL if the POST method is used.

Syntax

[VB.NET]
Public Property PostData As String
Public Property PostDataB As Byte()

[C#]
public string PostData {get; set;}
public byte[] PostDataB {get; set;}

Remarks

If PostData is a non-empty string, then if the HTTP 'PUT' methods are used (Put methods), the contents of the PostData property are appended to the HTTP request after the HTTP headers.

An HTTP 'Content-Length' header is also added to the request. Its value is the length of the string in PostData.

This property contains the data to post with the URL if the POST method is used. If this property contains a non-empty string, then if the HTTP 'POST' method is used (Post method), the contents of this property are appended to the HTTP request after the HTTP headers.

An HTTP 'Content-Length' header is also added to the request. Its value is the length of the string in PostData.

The most common example is posting of HTML form input data. In that case, the ContentType property must be set to "application/x-www-form-urlencoded".

Example (Performing a Post)


HTTPControl.ContentType = "application/x-www-form-urlencoded"
HTTPControl.PostData = "firstname=Tom&lastname=Thompson&country=US"
HTTPControl.Post(myurl)

This property is not available at design time.

Default Value

""

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 2.0.6240.0