Contents
Display Legacy Contents

 Print
    HTTP Request    
Executes a HTTP Request to a HTTP Server.

Parameters

Run From <radiobox>

This parameter allows user to choose between executing a HTTP Request locally (option "locally") or executing a HTTP Request remotely (option "Remotely").
If the user chooses option "Remotelly", is necessary define the following parameters:

 

Communication Profile <unquoted string> : name of the communication profile used to execute the remote HTTP Server.

 

Hidden <unquoted string>: this parameter allows user to define if he wants to run the remote HTTP Request in hidden mode or not.

 
  Timeout <unquoted string>: The timeout defined for connection. The value 0 is this parameter means that there is no timeout.. The timeout value is in miliseconds. 
   
Target Answer Body <string> or <numeric> 
  The control or variable to save the result of the HTTP Request. 

 
Target Answer Header<string> or <numeric>  
  The control or variable to save the result of the HTTP Request Header. 
   
Target Status Code<string> or <numeric>   
  The control or variable to save the result of the status code.  
   
Target Status Text<string> or <numeric>   
  The control or variable to save the result of the status text.   
   
Server <string>

The name of the server to execute the HTTP Request.

 
Object <string>

The name of the object to execute the HTTP Request

 
Port <numeric>

The port to communicate with the HTTP server.

 
Encoding <unquoted string>

The enchoding schema used for the communication. The possible options for this parameter are: utf-8, utf-7, ansi and unicode.

 
User <string>

The name of the user for the HTTP Request. If there is no defined user for the web service call, just put "" on this parameter.

 
Password <string>

The password of the user of the HTTP Request. If there is no user and password, just put "" on this parameter.

 
Mode <numeric>

The mode of the HTTP Request. The possible values for this parameter are:
 
 1-GET
 2-POST
 3-PUT
 4-DELETE
 5-PATCH
 6-HEAD
 7-CONNECT
 8-OPTIONS
 9-TRACE
 -2-Reset Session

   Note: -2 is only for Win32 clients. It ends the browser session, so that the next HTTP request is equivalent to being executed as if the applications just started.
 In Android and Win10 clients it does nothing.

 
Fail if status code isn´t 2xx <Yes> or <No>  or <string> 
  Defines whether fials if status code isn´t 2xx

 
Ignore Invalid Certificates <Yes> or <No>  or <string> 
  Defines whether ignores or not Invalid Certificates.
   
Additional Header <string>

Defines a additional request header for the HTTP Request.

 
Data <string>

The string that represents the request to HTTP Server.

     
  • In the Server parameter there should be only the server address, without any "/" and the remainder should go in the request Object parameter.

        For example when you have a request address like http://www.myserver.com/Name1/Name2 you should call:
            Server= "http://www.myserver.com"
            Object="Name1/Name2"



See also
Samples

 
 
Updated: 9/22/2016 9:40 AM