Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Insert Headers on a Redirect - iRules

Hi,

I have a requirement where the customer would like to have the original URL sent in a header when a redirect to their site occurs. For example, user enters www.test.com/test/ in their browser and then is redirected to www.mysite.com via an iRule. They would like to have a header that included the www.test.com/test/ URL. Is this possible?

Any help is greatly appreciated.

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

It's not generally possible to actively control a browser's headers. You can set a cookie (which is technically a header) and the browser will return it, but then usually only to the site that set it. In other words, you can't tell a browser to send a header.

0
Comments on this Answer
Comment made 1 month ago by Shann_P 358

Thanks Kevin! I've done it two ways thus far by setting the cookie and adding the Host and URI to the query string on the redirect. Looks like they are OK with the query string for now.

0