Re: Validator Api Problem On IIS

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"

  Source="System"

  StackTrace:

       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
options)

       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[]
args)

       konum:
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

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

       konum: System.Threading.ThreadHelper.ThreadStart()

  InnerException:

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