Moved HTTP POST logic into JSONPost class which will be used for drop requests as well.