add user-agent and correctly provide POST data