There are cases that you want to make an ajax request to another server and get the results.
There are cases that you want to make an ajax request to another server and get the results.
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest
class wraps various $_SERVER
variables to break down the URL into its constituent parts.