Forum Discussion
Nobu
Nimbostratus
Jul 03, 2018Added HTTP header information at redirect
I want to add HTTP header information when redirecting.
When adding HTTP header information (cipher version), there was no problem below.
when HTTP_REQUEST {
HTTP::header insert header...
youssef1
Cumulonimbus
Jul 04, 2018Hi Nobu,
Below the syntax that you have to use:
HTTP::respond 302 Location "http://test.co.jp/index.html" header_ssl [SSL::cipher version]
Therefore you will see the header only in the response and not in the request when you will be redirect to ";. it's normal behavior.
I advise you to follow the below procedure in order to reach you need:
Use your irule to redirect user but if you want to retrieve headerSSL info you have to insert it on the uri as parameter:
HTTP::respond 302 Location "http://test.co.jp/index.html?header_ssl=[SSL::cipher version]"
On the other VS use this irule to retieve information needed:
when HTTP_REQUEST {
set uri [HTTP::uri]
if {$uri starts_with "/index.html" && $uri contains "header_ssl"} {
set header_ssl [URI::query [HTTP::uri] header_ssl]
HTTP::uri /index.html
return
}
}
So keep me in touch it it respond to your need and if you need more details.
Regards
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