Syntax

Request.URL()
0 arguments

Runtime-verified: prefer the bare-name Request in CloudPages. Request.URL() returns the full request URL, while Platform.Request.URL() throws “Unable to retrieve security descriptor for this frame.” The other members return CLR values (empty on a plain CloudPage GET, with Method() = "GET").

Description

The global Request object exposes values about the current request. It behaves like its sibling Platform.Request and requires Platform.Load("core", ...) before use. Each member is called as a method.

Members

Member Returns Description
Request.URL() string Full request URL.
Request.PagePath() string Path portion of the request.
Request.Method() string HTTP method of the request (GET, POST).
Request.ApplicationID() string ID of the application handling the request.
Request.PackageID() string ID of the installed package.
Request.ApplicationBaseURL() string Base URL of the application.

Example

Platform.Load("core", "1.1.5");

var requestURL = Request.URL();
var requestMethod = Request.Method();
Write(requestMethod + " " + requestURL);

See Also

See Also