Origin Property
The Origin header field value.
Syntax
ANSI (Cross Platform) char* GetOrigin();
int SetOrigin(const char* lpszOrigin); Unicode (Windows) LPWSTR GetOrigin();
INT SetOrigin(LPCWSTR lpszOrigin);
@property (nonatomic,readwrite,assign,getter=origin,setter=setOrigin:) NSString* origin; - (NSString*)origin; - (void)setOrigin:(NSString*)newOrigin;
#define PID_WEBSOCKET_ORIGIN 24 IPWORKS_EXTERNAL void* IPWORKS_CALL IPWorks_WebSocket_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKS_EXTERNAL int IPWORKS_CALL IPWorks_WebSocket_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
""
Remarks
If specified, the class will include an Origin HTTP header in the connection request with the value provided. Servers may use this value to validate requests. Servers may reject requests depending on the value provided.
A typical value that would be set is of the form "http://example.com".
This property is not available at design time.
Data Type
String