implements protocol for NSURLConnectionDelegate and NSURLConnectionDataDelegate for postRequest project