Another forum user has found “Another way to do it” for one Curl based Perl program. You may be able use or adapt what was posted: