W3C home > Mailing lists > Public > www-validator@w3.org > December 2010

Re: Validator Api Problem On IIS

From: Mehmet Erdal ÍZKINACI <erdalmehmet@gmail.com>
Date: Wed, 1 Dec 2010 02:23:11 +0200
To: <www-validator@w3.org>
Message-ID: <000601cb90ed$f17051b0$d450f510$@com>
It works on IIS by using gui but, it is not work by using API. 


When I request "http://localhost/HtmlValidator/htdocs/check.pl?uri=" +
"http://www.milliyet.com.tr" + "&output=soap12"

With browser it response with  a file check.pl and then I open it and see it
is an xml file.


However, when I use api with same url and query strings it returns below
error. I think that confusion is file name extension "pl" and response
content type "Content-Type: application/soap+xml", they are different. Is
there any help? Thanks..


System.Net.WebException was unhandled

  Message="The server committed a protocol violation. Section=ResponseHeader
Detail=Header name is invalid"



       konum: System.Net.HttpWebRequest.GetResponse()

       konum: System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri,
ICredentials credentials)

       konum: System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn)

       konum: System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings
settings, XmlParserContext inputContext)

       konum: System.Xml.Linq.XDocument.Load(String uri, LoadOptions

       konum: ConsoleApplication1.Program.Validate()
C:\Users\Erdal\Documents\Visual Studio
2008\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs išinde:
satřr 22

       konum: ConsoleApplication1.Program.Main(String[] args)
C:\Users\Erdal\Documents\Visual Studio
2008\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs išinde:
satřr 43

       konum: System.AppDomain._nExecuteAssembly(Assembly assembly, String[]


       konum: System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)

       konum: System.Threading.ThreadHelper.ThreadStart()

Received on Wednesday, 1 December 2010 00:23:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:02 UTC