Can I use the above methods in setting any custom header esp.
First, you can through the API in the link what Ben had provided.
Next, you have misunderstood the "attributes" vs "headers". You can definitely set your own (user defined) attributes, but not the user-defined headers.
Because the "headers" are some predefined attributes which are standardized and understood/interpreted by the browser (client) as the way it is supposed to be. Even if you gonna add your own header, there would be no purpose/use of it as the browser may not understand what it means. [ May 21, 2008: Message edited by: Raghavan Muthu ]