0 Replies Latest reply on Aug 27, 2007 9:51 AM by beatak

    URLLoader/Stream change header name in CamelCase

    beatak
      Hi, I am trying to make a AtomPub client in AIR. In order to make it send a credential, I want to add "X-WSSE" header in request header. But it seems that either URLLoader or URLStream will change name property of URLRequestHeader AUTOMATICALLY. Here is the code...

      quote:

      var loader:URLLoader = new URLLoader();
      var url:String = " http://sample.com/";
      var req:URLRequest = new URLRequest( url );
      req.requestHeaders.push(new URLRequestHeader("x-testHeaders", "foo bar"));
      loader.load(req);


      This will fire the following request header..

      quote:

      X-Testheaders: foo bar«CR»«LF»


      I found it out by packet capturing... Is there any way to stop CamelCasing? or I have to write my own URLLoader??