The tuProlog library has no interfaces to sockets or http, which makes it difficult to interoperate with other Prologs such as gnuProlog and eclipse Prolog. The SocketLibrary class extends the IOLibrary class of tuProlog. So this should end up the alice.tuprolog.lib area and you need to replace engine load calls of IOLibrary with SocketLibrary.