I have built a small Java server that can return a special XML message that must be included in my HTTP requests. The server works as a socket.

What is the best way to make my LR script open a socket to that server and ask for the necessary XML?