Forum Moderators: open

Message Too Old, No Replies

what is application/octet-stream

Can't validate using W3C as says file type application/octet-stream?

         

fusion

10:05 am on Aug 6, 2004 (gmt 0)

10+ Year Member



The file i am trying to validate is an asp file with the following header.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

But i get this message:

Sorry, I am unable to validate this document because its content type is application/octet-stream, which is not currently supported by this service.

The Content-Type field is sent by your web server (or web browser if you use the file upload interface) and depends on its configuration. Commonly, web servers will have a mapping of filename extensions (such as ".html") to MIME Content-Type values (such as text/html).

Has anybody come across this before that might know how to rectify?

Thanks

encyclo

10:17 am on Aug 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you trying to validate the raw file including the server-side scripting, or the HTML output that the end-user will see?

It needs to be the latter for validation to have any worth - rather than just uploading the file, you need to parse it first and validate the result.

fusion

10:39 am on Aug 6, 2004 (gmt 0)

10+ Year Member



Thank you so much, i was validating by uploading the file first. It now works.