1 Reply Latest reply on Jul 7, 2008 7:23 PM by cybersnl

    httpservice.send() resulting in two http requests


      I am using HTTPService() to send some xml data inside an HTTP POST request. But very often, i do
      see this resulting in two local ports being opened and the http request being sent out twice, once from each port.

      is this possible in some race condition?

        • 1. Re: httpservice.send() resulting in two http requests
          cybersnl Level 1
          some snippets of my code:

          //build the http request
          var request:HTTPService = new HTTPService();
          request.method = "post";
          request.headers = headers[request.method];
          request.url = httpServer;
          request.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
          request.contentType = "text/xml";

          request.addEventListener(InvokeEvent.INVOKE , httpInvoke, false);


          i do see the invoke callback only being called once. That makes me guess that from the application code, httpservice.send() is called only once.

          any help will be great.