Solved! Go to Solution.
Hey Rajesh,
I am actually using wordpress and needed to handle the response a bit differently. Basically, because I was pushing data server to server, I needed to create a function that would push the code from the back end and not from the client-side. I just don't think there is another way to do it, especially with the domain origin policy. So all is working now and I am even getting a 200 response.
My only issue now is to find out what the error response marketo throws on their side.The responseText I get now is "<html><head><meta http-equiv="refresh" content="0; url=http://xxx-xxx.marketo.com/"></head></html>" but that is on success. Would be good to know what an error throws so I can actually make sure their server was successfully pinged and serve up an error message to the user if not.
Calvin, you might be able to answer this one!