cancel
Showing results for 
Search instead for 
Did you mean: 

Traffic Script Syntax error on BEA Weblogic Deployment Guide?

SOLVED
Highlighted
New Contributor

Traffic Script Syntax error on BEA Weblogic Deployment Guide?

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

3 REPLIES
New Contributor

Re: Traffic Script Syntax error on BEA Weblogic Deployment Guide?

I think i have found the appropriate code...

$client_ip = request.getRemoteIP();

Can someone confirm or correct me here?

Contributor

Re: Traffic Script Syntax error on BEA Weblogic Deployment Guide?

Yes, you are looking for request.getRemoteIP().

New Contributor

Re: Traffic Script Syntax error on BEA Weblogic Deployment Guide?

Thank you Sameh!