SetRequestHeader Method
Allows the user to set or add arbitrary HTTP request headers.
Object Oriented Interface
public function doSetRequestHeader($headername, $headervalue);
Procedural Interface
ipworksedi_as2sender_do_setrequestheader($res, $headername, $headervalue);
Remarks
HeaderName should contain the header name, and HeaderValue should contain its value. Use this to set headers such as To, Date, etc. Note that a default value for Date will automatically be determined and this method may be used to override the default.
SetRequestHeader may be used to set any header except for the following: AS2-To, AS2-From, AS2-Version, Subject, Message-Id, Disposition-Notification-To, Disposition-Notification-Options, Receipt-Delivery-Option, Host, Content-Length.