Forum Discussion
Stanislas_Piro2
Jun 23, 2015Cumulonimbus
To understand the irule, you must know how HTTP is parsed:
for the URL : http://test.nik.com:8080/test.txt the request is
GET /test.txt HTTP/1.1
Host : test.nik.com:8080
other headers
in this request:
- HTTP::uri is /test.txt
- HTTP::host is test.nik.com:8080
- [getfield [HTTP::host] ":" 1] is the first part of HTTP::host with field separator ":" --> test.nik.com
this irule redirect to : https://test.nik.com/test.txt