Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

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)