The cgx_content_type function allows you to change the Content-Type html header in the response to the Silverlight web service application requests. The function returns a pointer to the new Content-Type html header. You can use this function to override the default content type header from the TCPnet library. This content type header is used in cgx script responses. The default content type header in cgx script response is:
Content-Type: text/xml\r\n
This header is used if the cgx_content_type function does not exist in the project or if it returns a NULL pointer. The cgx_content_type function is in the HTTP_CGI.c module. The prototype is defined in net_config.h. note - This function is optional. If it does not exist in the project, the default library function is used instead.
|