vADC Forum

Reply
New Contributor
Posts: 3
Registered: ‎11-13-2013
Accepted Solution

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

New Contributor
Posts: 3
Registered: ‎11-13-2013

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
Posts: 40
Registered: ‎03-26-2013

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

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

New Contributor
Posts: 3
Registered: ‎11-13-2013

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

Thank you Sameh!

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.