iRules API | Description | Example |
---|---|---|
HTTP::uri | Returns the URI of the HTTP request. This typically does not include the protocol or hostname, just the path and query string, starting with a slash. | example 1: http://itadminguide.com/wp-admin/admin.php?page=tablepress&action=edit&table_id=9 HTTP::uri returns /wp-admin/admin.php?page=tablepress&action=edit&table_id=9 |
HTTP::path | Returns Path part of the HTTP request. | example 1: http://itadminguide.com/ HTTP:path returns / example 2: http://itadminguide.com/wp-admin/admin.php?page=tablepress&action=edit&table_id=9 HTTP:path returns /wp-admin/admin.php |
HTTP::host | Returns host header of the HTTP request along with port but when non-standard port is specified (expect 80 (HTTP) or 443(HTTPS)) | example 1: http://www.itadminguide.com/ HTTP::host returns www.itadminguide.com example 2: http://itadminguide:7003 HTTP::host returns itadminguide:7003 |