Updated setting of curl options and adjusted
the input and output of requestBase to be friendlier to JSON