Look for Web Services from 360 Works. Steve Winter with Matatiro Solutions did a great Devcon presentation on web services from FileMaker. Or PHP guys like Anders Monsen at Mighty Data could probably help you out too.
If you use the MBS Plugin, we both have socket functions and CURL functions.
With socket you can do a TCP Socket connection in both directions. With CURL you can query a server with HTTP(s).