Skip to content

Web Page Request

Defines how a specific web page is requested.

Used by actions connect, connect to conference, get input, get number, play, receive fax, record, redirect, run menu, run speech menu, send fax, start transcription

language wrappers and examples

It has the following properties:

PropertyRequired/OptionalDefaultDescription
urlrequiredThe address of the web page to request.
methodoptionalPOST, except where specifiedThe HTTP request method to use when requesting the url. One of GET or POST, except where specified.

Examples:

Create a web page request object with the default method:
{
    "url": "my_handler_page"
}
Create a web page request object, setting the method:
{
    "url" : "my_handler_page",
    "method" : "post"
}

WebPageRequest Class

Namespace: Aculab.Cloud.RestAPIWrapper

Assembly: Aculab.Cloud.RestAPIWrapper.dll

A class representing a request to a web page.

public class WebPageRequest 
{
    // Constructors
    public WebPageRequest(string url);
    public WebPageRequest(string url, string method);

    // Members
    public string Url;
    public string Method;
}

Examples:

Create a web page request object with the default method:
var webPageRequest = new WebPageRequest("MyHandlerPage.aspx");
Create a web page request object, setting the method:
var webPageRequest = new WebPageRequest("MyHandlerPage.aspx", "POST");
public class WebPageRequest 
{
    // Constructors
    public WebPageRequest(string url);
    public WebPageRequest(string url, string method);

    // Members
    public string Url;
    public string Method;
}

Examples:

Create a web page request object with the default method:
var webPageRequest = new WebPageRequest("MyHandlerPage.aspx");
Create a web page request object, setting the method:
var webPageRequest = new WebPageRequest("MyHandlerPage.aspx", "POST");
public class WebPageRequest 
{
    // Constructors
    public WebPageRequest(string url);
    public WebPageRequest(string url, string method);

    // Members
    public string Url;
    public string Method;
}

Examples:

Create a web page request object with the default method:
var webPageRequest = new WebPageRequest("MyHandlerPage.aspx");
Create a web page request object, setting the method:
var webPageRequest = new WebPageRequest("MyHandlerPage.aspx", "POST");

WebPageRequest Class

Namespace: Aculab.Cloud.RestAPIWrapper

Assembly: Aculab.Cloud.RestAPIWrapper.dll

A class representing a request to a web page.

Public Class WebPageRequest
    ' Constructors
    Public Sub New (url As String)
    Public Sub New (url As String, method As String)

    ' Members
    Public Property Url As String
    Public Property Method As String
End Class

Examples:

Create a web page request object with the default method:
Dim webPageRequest = New WebPageRequest("MyHandlerPage.aspx")
Create a web page request object, setting the method:
Dim webPageRequest = New WebPageRequest("MyHandlerPage.aspx", "POST")
Public Class WebPageRequest
    ' Constructors
    Public Sub New (url As String)
    Public Sub New (url As String, method As String)

    ' Members
    Public Property Url As String
    Public Property Method As String
End Class

Examples:

Create a web page request object with the default method:
Dim webPageRequest = New WebPageRequest("MyHandlerPage.aspx")
Create a web page request object, setting the method:
Dim webPageRequest = New WebPageRequest("MyHandlerPage.aspx", "POST")

class WebPageRequest extends JSONElement

Represents a request to a web page.

Class synopsis:

// Constructors:
public WebPageRequest(String url)
public WebPageRequest(String url, String method)

// Members:
public void setMethod(String method)

Examples:

Create a web page request object with the default method:
WebPageRequest webPageReq = new WebPageRequest("my_handler_page");
Create a web page request object, setting the method:
WebPageRequest webPageReq = new WebPageRequest("my_handler_page");
webPageReq.setMethod("POST");

class WebPage

Represents a request to a web page.

Class synopsis:

# WebPage object:
WebPage(url, method='POST')

Examples:

Create a web page request object with the default method:
web_page_req = WebPage(url='/my_handler_page')
Create a web page request object, setting the method:
web_page_req = WebPage(url='/my_handler_page', method="POST")

The WebPageRequest class

Introduction

Represents a web page request.

Class synopsis

class WebPageRequest {

    /* methods */
    public __construct(string $url, string $method = null)
}

Examples:

Create a web page request object with the default method
$webPageRequest = new \Aculab\TelephonyRestAPI\WebPageRequest('my_handler_page');
Create a web page request object, setting the method
$webPageRequest = new \Aculab\TelephonyRestAPI\WebPageRequest('my_handler_page', 'POST');