A
Poster is an
roSGNode which implements the
ifSGNodeHttpAgentAccess interface, which provides access to a node's
roHttpAgent object, which implements the
ifHttpAgent interface.
Therefore, you should be able to do something like:
posterHttpAgent = posterNode.getHttpAgent()
posterHttpAgent.AddHeader("HeaderName", "HeaderValue")
'posterNode.setHttpAgent(posterHttpAgent) <== This line is not needed!
(not sure if you need that last line of code or not)A node inherits its parent's roHttpAgent object, so you should be able to set the headers on a Poster ancestor, rather than setting it for each individual Poster.
Note, I haven't tried this yet, so no guarantee if this will work or not. Try it and report back if you have problems.