Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Can not get JSON back from ActiveState plx ISAPI Perl, JSON and IIS

by Random_Walk (Prior)
on Feb 07, 2014 at 09:42 UTC ( [id://1073844]=note: print w/replies, xml ) Need Help??


in reply to Re: Can not get JSON back from ActiveState plx ISAPI Perl, JSON and IIS
in thread I can not get JSON back from ActiveState plx ISAPI Perl running on IIS

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!
  • Comment on Re^2: Can not get JSON back from ActiveState plx ISAPI Perl, JSON and IIS
  • Download Code

Replies are listed 'Best First'.
Re^3: Can not get JSON back from ActiveState plx ISAPI Perl, JSON and IIS
by Anonymous Monk on Feb 07, 2014 at 09:44 UTC

    I am checking using the developer tools in Chrome.

    Try checking using lwp-request -UusSeE http... :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1073844]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 23:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found