Sending HTTP Post and Telnet commandoes

Thanks.

I was able to use the script found here:

This script helped me a lot.

But this string:
TCPSendString(‘10.0.0.1’, 1234, ‘DS=1’); need to be ASCll formatted. But seem to be UTF-8. It is the same way to post artist / title to 2WCom RDS encoders as ASCII.

I also need to the script to load with procedure OnOnAir and OnOffAir. The purpose is to send commands when the player is in On Air mode and Off.

// Called when mAirList goes ON AIR

procedure OnOnAir;

begin

HTTPGet('http://' + BREAKAWAY_IP + ':8282/parameter/fm1/misc/rds_pi_hex=F288'); // PI NASJONAL 
TCPSendString('10.0.0.121', 5500, 'DS=2'); // PI NASJONAL  2WCOM < THIS NEED TO BE ASCII

end;

// Called when mAirList goes OFF AIR

procedure OnOffAir;

begin
HTTPGet(‘http://’ + BREAKAWAY_IP + ‘:8282/parameter/fm1/misc/rds_pi_hex=F688’); // PI REGIONAL PI
TCPSendString(‘10.0.0.121’, 5500, ‘DS=1’); // PI REG 2WCOM -< THIS NEED TO BE ASCII

end;