Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Print Json text from query string

by perlCrazy (Monk)
on Sep 10, 2012 at 11:11 UTC ( #992724=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Print Json text from query string
in thread Print Json text from query string

Thanks for prompt response.
Issue is when JSON data is getting passed via URL, i am not able to print. Can you please help with code that can be send via url and print on the server side code.
I am trying to create restful web service and having some difficulties while implementing this.


Comment on Re^4: Print Json text from query string
Re^5: Print Json text from query string
by Corion (Pope) on Sep 10, 2012 at 11:21 UTC
    1. Verify what data your server program receives. Print that data to a log file to inspect.
    2. If your server program does not receive the data you expect, debug your client program.
    3. If your program is not using CGI, please make sure you understand the difference between GET parameters and POST parameters and URLs.
    4. Make sure that your server program can handle both, GET parameters and POST parameters. Read LWP::Request about how to send POST parameters.
    5. Verify that what your server program decodes is what you expect. Print that data to a log file to inspect.
    6. If your server program does not decode what you expect, post a relevant minimal version of your server program with hardcoded data so that we don't need a webserver or a client program.
      Thanks. it worked using CGI and sending request via POST.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (10)
As of 2014-07-28 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (204 votes), past polls