Forum Discussion

2funky_105078's avatar
Sep 16, 2012

GTM can do 302 redirects?

Hello Community,

 

 

We have 3 DCs (eur, us, apac) and we use GTM to GLB for different WideIPs.

 

We have a strange request coming from the appliaction owners of Netweaver Gateway for SAP Portal.

 

 

Normally it works like this: the client browser wants to go to - lets say - www.url.com which goes to the GTM, which, based on RTT, sends back the nearest IP address, which corrosponds for example to www.eur.url.com.

 

Now, www.eur.url.com is configured in the eur LTM, which answers to the request and sends immediatley back a HTTP 302 redirect tothe client for redirecting to something like www.eur.url.com/new_uri .

 

 

here comes the problem: some clients (namely mobile devices) do not handle such 302 redirects (looks like a problem with the Ajax language script) and they need to get back from the GTM, not only www.eur.url.com, but the complete URI www.eur.url.com/new_uri, so that they dont need to do any 302 redirect themselves.

 

 

is this possible with any sort of GTM iRule?

 

 

my first guess is no, because if the client browser has already asked for www.url.com, how can it go to another URL if nobody has asked him to change address destination?

 

 

i hope i made myself enough clear... :)

 

 

thanks a lot for any valuable input.

 

 

giulio faini.

 

1 Reply

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus
    Not as such. GTM operates at the DNS (FQDN) level only. Anything past the first / is not relevant at the GTM level.

     

     

    You'd have to do something at the LTM to recognise that the client can't do a 302, and do the request against the redirect location for it and give back the result.

     

     

    H