User Tools

Site Tools


libraries:restwebservice:restrequestclass:geturl

RestRequest::getUrl()


Definition

Returns the complete requested URL string (endpoint).

String getUrl ( )

Returns

  • String
    URL as it was called by the requesting client.

Example

$Request = new RestRequest();
 
// Called endpoint is: [PUT] https://www.domain.com/webservice/accounting/booking
// Content is:         "id:5,account:1234,name:Mr. Smith,amount:592.30"
 
$RequestedUrl = $Request->getUrl();  // "https://www.domain.com/webservice/accounting/booking"
libraries/restwebservice/restrequestclass/geturl.txt · Last modified: 2022/12/21 19:41 by michael.pohl