Description
This function echoes the URL or ** All Requests **
.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Mime::redirect_info
— This function retrieves redirect information for a URL or** All Public Domains **
.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
url |
string |
Required The URL to pass through the function. |
A valid URL. |
http://www.example.com/ |
Returns
Return |
Type |
Description |
Possible values |
Example |
url |
string |
The url parameter. |
The url parameter. |
http://www.example.com/ |
reason |
string |
A reason for failure. Note: This function only returns areason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |