Forum Discussion
Yugandhar
Nimbostratus
Jul 27, 2018Reg getfield command in Redirection.
Hi
Is there any difference between the below 2 methods ?.
HTTP::redirect "https://[getfield [HTTP::host] : 1][HTTP::uri]"
HTTP::redirect "https:// [HTTP::host] [HTTP::uri]"
I get...
Stanislas_Piro2
Cumulonimbus
Aug 06, 2018as f5_rock explained, getfield command returns a substring of the input string
in your example : the input string is test7883.com:8900
-
[getfield [HTTP::host] : 1] will return test7883.com
this is the first part of the input string with separator : -
[getfield [HTTP::host] : 2] will return 8900
this is the second part of the input string with separator :
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects