added header differentiation for POST and GET, POST works now