Official Content

Executes an HTTP method in a defined URL path.

Syntax

&VarBasedOnHttpClient.Execute(Method, URL)

Where: 

&VarBasedOnHttpClient
   
Is a variable based on the HttpClient data type.

Method
    Is the type of HTTP method used to retrieve data. Only accepts HttpMethod domain values.

URL
    Relative URL path for the object whose information wants to be obtained.

Type Returned:
HttpClient

Scope

Data Types: HttpClient
Generators: .NET.NET FrameworkJava

Description

The retrieved data is stored in HttpClient data type based variable, and it can be obtained using ToString or To File methods.

Samples

&HttpClient.execute(HttpMethod.Get, "/servlet/hclientes")
&Result = &HttpClient.ToString()


Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant