Add trim to post value
Remove curl version function move to api libs
Moved functionality to api lib