added a static post method and added a HTTP response class, only implemented the curl method.