I am checking using the developer tools in Chrome. The first test gives me back a nice javascript object, I can browse it in the gui, but a bit hard to render here. The second just shows as a string, with or without content type header, depending on commenting that line in or out.
$.post('/cgi-bin/cp_json_test.pl', {},function (data) {console.dir(dat +a) } ); > Object {readyState: 1, getResponseHeader: function, getAllResponseHe +aders: function, setRequestHeader: function, overrideMimeType: functi +on…} > Object $.post('/cgi-bin/cp_json_test.plx', {},function (data) {console.dir(da +ta) } ); > Object {readyState: 1, getResponseHeader: function, getAllResponseHe +aders: function, setRequestHeader: function, overrideMimeType: functi +on…} > Content-Type: application/json; charset=ISO-8859-1 {"is":"simple","t +his":"test"}
IIS is version 6. I am so sorry about that :-(
I have .pl exgtensions running with perl.exe and .plx with perlis.dll
The reason I am trying to do this is mostly performance, and the challenge :-) I may give up though and return to plain perl.exe. I thought it looked like a nice way to get a bit more kick out of a heavily loaded server.
Cheers,
R.
In reply to Re^2: Can not get JSON back from ActiveState plx ISAPI Perl, JSON and IIS
by Random_Walk
in thread I can not get JSON back from ActiveState plx ISAPI Perl running on IIS
by Random_Walk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |