`doPost` returns a string not DOMDocument. I'll have to get back to you on the best way to handle this if you need to POST