Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^5: json return value

by stenasc (Novice)
on Jul 13, 2013 at 20:56 UTC ( #1044169=note: print w/ replies, xml ) Need Help??


in reply to Re^4: json return value
in thread json return value

First thing I did. It made no difference. It looks as if the server is returning something, but just not the json response. THe perl code seems fine..well no syntax error anyway. I tried to get it to print out a log file in the cgi-bin directory, but there are probably no write permissions for that dir. Thinking it's a directory issue..just dunno. For such a simple thing...can't believe there are so little examples out there.


Comment on Re^5: json return value
Re^6: json return value
by Anonymous Monk on Jul 13, 2013 at 23:18 UTC

    First thing I did. It made no difference. It looks as if the server is returning something, but just not the json response. THe perl code seems fine..well no syntax error anyway. I tried to get it to print out a log file in the cgi-bin directory, but there are probably no write permissions for that dir. Thinking it's a directory issue..just dunno. For such a simple thing...can't believe there are so little examples out there.

    See json return value and employ the debugging checklists

    The public_html/ in public_html/cgi-bin seems unusual

Re^6: json return value
by marto (Chancellor) on Jul 15, 2013 at 08:18 UTC

    "First thing I did. It made no difference."

    I find this hard to believe, since you're now getting some response. Perhaps you're unfimiliar with CGI programming, many links have been given in this thread providing advice for learning and debugging such things. I see tobyink has provided a working solution in reply.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-08-20 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (124 votes), past polls