BE_HTTP_SetCustomHeader

BE_HTTP_SetCustomHeader ( header ; value )

Used for setting a  header value before a HTTP function call. You can call this function multiple times before the POST to set more than one header, and call it with empty parameters to clear them out.

Versions
1.3.0 : Added
4.0.1 : Added option to call with no parameters to delete all Headers
4.0.2 : Renamed from BE_HTTP_Set_Custom_Header
4.1.3 : Breaking Change : Setting a header with ( "HeaderName"; "") now sets the header to "" ( an empty header value ), instead of removing that header as previous.   To remove the header call BE_HTTP_SetCustomHeader with ( "HeaderName" ) as before.

Parameters :
header : the name of the header to set.
value : the value to set it to.

Result : Returns an error code if possible, and 0 ( for no error ) on success. Other errors are logged and can be retrieved with BE_GetLastError.

Example :

BE_HTTP_SetCustomHeader ( "Content-Type" ; "text/xml;charset=utf-8" ) //sets the text and charset values

Still need help? Contact Us Contact Us