Do the same thing in Discourse and look at your browser’s console network tab to see how the request is made.