0 Replies Latest reply on May 9, 2008 1:30 PM by MESTREGAFANHOTO

    HTTPService list parameters

    MESTREGAFANHOTO
      Guys,

      in a HTTP request you're allowed to pass a list of values to one parameter as follows:

      www.blah.com/call?param=value1,param=value2,param=value3.

      Apparently HTTPService doesn't support this as the parameters must be passed using a flex object (or the request property of the HTTPService object) as follows:

      var srv:HTTPService = new HTTPService("www.blah.com")
      srv.send({param:'value1'}


      or

      var srv:HTTPService = new HTTPService("www.blah.com")
      srv.request.param =''value1'
      srv.send()


      If I try to pass a array as parameter,like:

      var srv:HTTPService = new HTTPService("www.blah.com")
      srv.request.param =['value1','value2']


      the request will convert the array to it's contents String representation witch will result in something similar as doing

      var srv:HTTPService = new HTTPService("www.blah.com")
      srv.request.param ='value1,value2'
      srv.send()


      Does anyone have a workaround for this, or am I missing something?

      Regards,
      Gabriel