Forum Discussion
Perween_Zaman_7
Nimbostratus
Nov 06, 2005Question on getfield
Hi
If my URL is http://myDomain.com/myImage.img
what will be the value of the variable second_field in this iRule?
set second_field [getfield [HTTP::uri] "/" 2]
Will it be myImage.img or will it be an empty string because the second slash is missing?
Thanks,
pzaman
- The value will be myImage.img. Here's the reason why. getfield works like this:
- woshioven
Altostratus
In condition 1 [HTTP::uri] "/" 1] return (null)
In condition 2 [HTTP::uri] "/" 2] return myImage.img
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