RE: Validator Api Problem On IIS

Mehmet,

 

Can you capture a wire level trace using either IIS Failed Request Tracing,
Fiddler or Wireshark?

 

If you're unsure of how to achieve this, ping me off list and I'll help you
out.

 

 

--

Tatham Oddie

au mob: +61 414 275 989, us cell: +1 213 280 9140, skype: tathamoddie

If you're printing this email, you're doing it wrong. This is a computer,
not a typewriter.

 

From: www-validator-request@w3.org [mailto:www-validator-request@w3.org] On
Behalf Of Mehmet Erdal ÖZKINACI
Sent: Wednesday, 1 December 2010 11:23 AM
To: www-validator@w3.org
Subject: 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 05:10:35 UTC