Irule help - encoding
I’ve attached the log output from a sample session. We’re getting the following (removed https:// to make the link not active and marked two sections in bold and blue to indicate where the error lies):
HTTP_REQUEST: newString2 1 {fss.stage.gecompany.com/fss/idp/startSSO.ping?PartnerSpId=webex.comACSIdx=2TARGET3dhttps3a2f2femeetings-test2.webex.com2femeetings-test22fj.php3fED3d14122433226UID3d101145530726PW3dNODBlNzAxNjE226RT3dMiMxMQ253D253D
If we plug in the missing ampersands and replace the encoded equals sign (3d) with an equals sign (red section) and percent signs (blue sections), we get the following:
https://fss.stage.gecompany.com/fss/idp/startSSO.ping?PartnerSpId=webex.com&ACSIdx=2&TARGET=https%3a%2f%2femeetings-test2.webex.com%2femeetings-test2%2fj.php%3fED%3d141224332%26UID%3d1011455307%26PW%3dNODBlNzAxNjE226RT3dMiMxMQ253D253D
That works perfectly. So, we just need to figure out why the & and = are being removed from $fssString and why the % signs are being removed from newstring2.
when HTTP_REQUEST {
break it up using ? as delimiter
set value for FSS/Ping string
build the new string using the F5 URI::encode command on the entire query string
Thanks in advance !!!