Custom http-connector?

Take a look at Replacing Http-Connector with Jsoup usage

You can write it all as a reusable script