SetRequestHeader Method

Allows the user to set or add arbitrary HTTP request headers.

Syntax

ANSI (Cross Platform)
int SetRequestHeader(const char* lpszHeaderName, const char* lpszHeaderValue);

Unicode (Windows)
INT SetRequestHeader(LPCWSTR lpszHeaderName, LPCWSTR lpszHeaderValue);
- (void)setRequestHeader:(NSString*)headerName :(NSString*)headerValue;
#define MID_AS2SENDER_SETREQUESTHEADER 11

IPWORKSEDI_EXTERNAL int IPWORKSEDI_CALL IPWorksEDI_AS2Sender_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

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.

Error Handling (C++)

This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks EDI 2020 C++ Edition - Version 20.0 [Build 8203]