strip trailing whitespace
kill http resource