I suppose you could build it using the Jersey client as a dependency jar, although I would beware of the dependencies (and java version) needed.
Otherwise, commons.httpclient authentication samples are available on the Apache site, just make sure you follow v3.1 documentation (and not v4, which is not available in Servoy 5.2).