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.

Pereant, qui ante nos nostra dixerunt!

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.