Forum Discussion

SP-AU's avatar
SP-AU
Icon for Nimbostratus rankNimbostratus
Apr 14, 2016

URL encode iRule question

Hi all, I am trying to write iRule for to use URI::encode.

 

This is my request

 

  1. HTTP Request > https://link.test.net/wstaion?name1=123xyz&rurl=rtrdce%rrere%fgfgf
  2. Need to read the URL, if wstaion in the URL
  3. generate url > https://link.test.net/loader.html?name1=123xyz&rurl=rtrdce%rrere%fgfgf >> set val final

     

  4. rewrite to https://singon.test.net?sip=testred&furl=[URI::encode {$final}]

     

Note: name1= dynamic value; rurl = dynamic value

 

Thanks SP

 

1 Reply

  • Arie's avatar
    Arie
    Icon for Altostratus rankAltostratus

    Can you post what you have so far so the community can help you from that starting point?