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.
Return Value
The cgx_content_type
function returns a pointer to 0-terminated Content-Type
string.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.