I'm trying to output soap response from CRMScript but get an Error 502 - Web server received an invalid response while acting as a gateway or proxy server.
i've added these headers to my crmscript:
_headers.insert("Content-Type", "application/soap+xml; charset=utf-8");
for (_headers.first(); !_headers.eof(); _headers.next())
h += _headers.getKey() + ": " + _headers.getVal() + "\n";
When i try to call the script in a new window (Both via customer.fcgi safeParse and blogic.fcgi)
I get a 502 error:
If i don't change the header it outputs just fine, and valid xml - but with a wrong content-type of course.
Any help or tips to what could be wrong? Running the script inside the editor with the headers on works just fine too :)
Moderator: Please create sensible topic headers