Fixed post request to server and successfully pulled out sent data on server side.