http://www.perlmonks.org?node_id=1039826


in reply to Web Services

I can only see one thing obviously fishy in your script, and that is this line:
print "Content-type: text/html\n\n";
JSON is not HTML, so surely this is wrong. Not that many (or even any) clients would mind.