Skip to main content
1-Visitor
December 10, 2014
Question

how to consume  Rest webservice by sending parameters using post method

  • December 10, 2014
  • 1 reply
  • 1454 views

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

    1 reply

    1-Visitor
    December 18, 2014

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

    rtoraskar1-VisitorAuthor
    1-Visitor
    December 19, 2014

    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