sends http post requests. implemented for testing purposes