Sorry I can't help you, but I'm looking for the same type of information. I need to send an https request out from the script to trigger an external event.
If you get code please post it up. I'm not a java programmer but I know the method(?) / library I need to use and it's not in IPCC by default.
I know you can add your own classes / methods .