How can I sending json data using Spring RestTemplate to PHP server -


i developing android application , using spring resttemplate data , post data php server. tried post data php server, php server got nothing. how can post json data using spring resttemplate php server , json php server?

i solved problem myself. add formhttpmessageconverter resttemplate this:

resttemplate resttemplate = new resttemplate(); resttemplate.getmessageconverters().add(new formhttpmessageconverter());

and can post json data php server. got json data in php server using:

$jsondata = $_post['json'];


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -