changed request to POST and server to properly read POST