HttpClient data type

Official Content
This documentation is valid for:

This data type allows to build a request, send it to a URL and read the results. 

This object reflects an HTTP connection.

Properties

BaseURL ProxyServerHost and ProxyServerPort
Basic and Digest ReasonLine
ErrCode Secure
ErrDescription StatusCode
Host Timeout
Port  


The URL format is the follow : http://Host:Port/BaseUrl/Resource

Methods

AddAuthentication AddVariable
AddFile Execute
AddHeader GetHeader
AddProxyAuthentication ToFile
AddString ToString

Scope

Objects Procedure object, Transaction object, Web Panel objectWork with for Web, Work With for Smart Devices objectPanel for Smart Devices object
Platforms  Web(.NET, Java, NET Core), Smart Devices(Android, IOS).
   

Availability

This data type is available as of GeneXus X

  • As of GeneXus 15 these methods can be used from offline procedures in Smart Devices apps. 
  • As of GeneXus 15 upgrade 12 these methods can be used in the user-defined event of Smart Devices apps. 

Sample

See Consuming a Rest Service with GeneXus

See also

HttpResponse data type
HttpRequest data type





Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.