Here, we’re grabbing the unique ID from the
REMOTE_ADDR index of the
$_SERVER collection, we’re grabbing the site URL as defined by WordPress, and then we’re storing the permalink of the current page into its own variable.
Make the Request
At this point, we’re ready to make the request. Recall from the previous article that there are several pieces of information we need to send along with the request:
- The URL
- The content of the body (which we’ll use as the Unique ID, the Address, and the Page Viewed