i need send image client application (java) web server (play framework). however, needs secure - not in encrypted transfer needs assigned specific user , client application can use - no web browsers or 3rd party apps
which better of using - using post or sending binary json?
you've created false sense of options here. first, can post or put , have data still sent across json (or xml matter.) if chose post or put can still use json.
as being secure, that's you'd need check on web server. pass in credentials user perhaps unique token application has access to. check on server side these parameters. if they're not there, return 403 (forbidden.)
with in mind, i'd argue whether use put or post dependent on controlling picture. mean is, if want let client application determine picture's id 123, should put id specified.
if want let server determine picture's id 456, should post without specifying id, returning client application.
Comments
Post a Comment