Implement copy pasting with curl