Use curl for key upload