using system to execute the curl command was giving me the 2nd issue i spoke of.(malformed headers) . Luckily the post i mentioned advised back ticks which makes it work.
will read about the other Capture::Tiny thing..Ok. thanks
Do not wait to strike when the iron is hot! Make it hot by striking - WB Yeats