I just changed it to use post method the url construction looks the same.