Added logic to determine get and post requests, now just have to send response from server for either and then start transmitting actual message