Hi,
I was working through the above deployment guide and found that the Stingray TM's highlight a syntax error when trying to create the Traffic Script rule for passing on client IP address to the weblogic servers.
The TrafficScript code in question is:
$client_ip = request.remoteIP();
http.setheader("WL-Proxy-Client-IP", $client_ip);
The Stingrays are reporting an issue with the first line... specifically "request.remoteIP()"
Can someone advise on this and tell me what the correct syntax would be?
Many thanks
Alex
Solved! Go to Solution.
I think i have found the appropriate code...
$client_ip = request.getRemoteIP();
Can someone confirm or correct me here?
Yes, you are looking for request.getRemoteIP().
Thank you Sameh!