cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the parameters from a put request

dallinns
Champ on-the-rise
Champ on-the-rise
I have a webscript that is accessed through a put request, but I can't figure out how to access the parameters. I've tried through formdata and through args and neither seem to contain the parameters that I'm passing in. How do I get them?
2 REPLIES 2

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
It depends on how're you sending the request (using parameters in the url, sending a body request, etc).

But it seems if formdata and args are not working you might try requestbody.

Check this link

You have more info in that page regarding the request processing.

For example if you putting a json and you want to access to it use:


var jsonData = jsonUtils.toObject(requestbody.content);

Hope this helps,
Adei

mitpatoliya
Star Collaborator
Star Collaborator
Check out the section Tunneling HTTP Methods

under this link.
http://wiki.alfresco.com/wiki/Web_Scripts