3 Replies Latest reply on Apr 12, 2008 7:02 AM by justria

    HTTPService

    Bucko70
      Hi , need to post multiple values to a webserver using HttpService and Post method.
      I have a working solution on posting a object with key/value pairs. like:
      Object({name1:"test1",name2:"test2"})

      My problem is that i need to post an object (or something else) with same key with different values:
      Object({name:"test1",name:"test2"}), but this dont work, the result on the server will be name=test2.

      Is there any solution to this problem?
      Thank you for your time.
        • 1. Re: HTTPService
          AwesomeDigital2
          That does the same thing when trying to us URLVariables.
          I posted the same question just a little bit before you

          Posting To A URL

          I hope somebody has a workaround for us.


          Mathias
          • 2. Re: HTTPService
            basesignal
            You should check out AMFPHP, or one of the other similar technologies. If one exist's for your server it will make this kind of thing real easy.
            • 3. Re: HTTPService
              justria Level 1
              quote:

              My problem is that i need to post an object (or something else) with same key with different values:
              Object({name:"test1",name:"test2"}), but this dont work, the result on the server will be name=test2.


              This isn't a bug, but expected behaviour of HTTP. a POST or GET name can have one and only one value - just as a variable in a programming language.

              Try to use 'test[1]' and 'test[2]'.