cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

how to consume  Rest webservice by sending parameters using post method

Newbie

how to consume  Rest webservice by sending parameters using post method

Hi ,
I want to consume  a rest webservice url and and want to send some parameter(ex. array) using post method.
Which api to use and how to send parameters ?

Thanks

2 REPLIES 2

how to consume Rest webservice by sending parameters using post method

Can you define any specific use case? It will be much easier to help you answering specific question than such a generic once. 

how to consume Rest webservice by sending parameters using post method

Hi Mateus,

I want to call a rest web service using post method and wanted to send some data(i.e. parameters), but the data should be send as array of array. So while making call i am send parameter as json string and able to call the service but in server, parameter is coming as null thus failing the call.

I am using PostJSON api of ContentLoaderFunctions and in content i am passing the parameter as JSON String in content params.
ex:
content:  {"key":[{"key":"value","key":"value","key":"value"}],"key":"value","key":{}} 

Thanks