I'm trying to submit a form as a POST request with pre-loaded data to a site with no API. I have wrapped my form inside an iframe element, hoping to isolate it. However, the page still changes to the action page. How can I trap it in to prevent this?
Some answers to similar questions suggest setting the response's Content-Type to text/plain to force the browser to treat it as a document instead of a file. However, please note that I don't have access to the other end.