Forum Discussion
Cae_140395
Nimbostratus
Feb 18, 2014What's the meaning of " : 1" in irule-redirect HTTP to HTTPs
Hello all!
I have a doubt about a parameter on the irule below:
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
Why the two points following...
IheartF5_45022
Nacreous
Feb 18, 2014Hi - even if you are using a standard port, some clients (not usually a browser - a probe for example) can choose to include a port number in a request, so if you want to be super-dooper correct use getfield to prevent https://site.com:80/blah from being returned in a Location header. Also as Aaron says - if you leave it in it's a one size fits all iRule....
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