HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityLog In

setHeader

Defines an RFC822-compliant header value in Optimizely Campaign.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
mailingIdlongID of the mailing
NameStringField name

Must be compliant with RFC822 (only 7bit US-ASCII characters are allowed).
ValueStringValue of the header field

Must be compliant with RFC822 (only 7bit US-ASCII characters are allowed).

Return values

  • Code structure

    void setHeader(String sessionId, long mailingId, String name, String value)
    

What’s Next
Did this page help you?