Server Displaying Text Instead Of Html
I'm attempting to make a C server that will take inputs and be able to spit them back out to the user via html format where the server works as a user interface. My current issue I
Solution 1:
You need to add the response headers like this one :
for example the response header send by SO for this page is:
HTTP/2.0200OKcache-control:privatecontent-type:text/html;charset=utf-8content-encoding:gzipx-frame-options:SAMEORIGINx-request-guid:599a5768-3cc6-4b94-86e1-e1d1daa8acd5strict-transport-security:max-age=15552000content-security-policy:upgrade-insecure-requestsaccept-ranges:bytesdate:Tue,07May2019 13:17:15 GMTvia:1.1varnishx-served-by:cache-lcy19237-LCYx-cache:MISSx-cache-hits:0x-timer:S1557235035.073229,VS0,VE89vary:Accept-Encoding,Fastly-SSLx-dns-prefetch-control:offcontent-length:35669X-Firefox-Spdy:h2
Post a Comment for "Server Displaying Text Instead Of Html"