Add retry option to request, enhance ptt.post.