5 Replies Latest reply on Oct 26, 2006 2:20 PM by Manny_2

    Custome headers in HttpRequest

    zsomboro
      Hello,

      I am having some problems including extra headers in my HttpRequest. I've tried it with ActionScript and mxml too, but no headers were added. All I know is that I should use an Object. This is what I have experimented with so far:

      var Header:Object = new Object();
      Header = [name = "CustomH", data = "Test"];
      Request.headers = Header;

      <mx:HTTPService
      id="Request"
      url=" http://localhost:8080/TestServ"
      method="GET"
      headers = "CustomH: Test"
      useProxy="false">
      </mx:HTTPService>

      TestServ is a java servlet. All it does is to write out the headers found in the request.
      Could someone help me? I'm really stuck.
      Thx.