Validator Api Problem On IIS

I installed w3 validator on windows 7 and iis 7.5. 

Everything is ok while using html gui with browser. However, I call
validator in c# code 

like http//.../check.pl?uri=www.google.com&output=soap12, protocol error
occurs. 

Because, I think pl extension of check.pl file. Header is check.pl 

and content of file is xml.

 

(In order to validator work no IIS, I had to changed check file name to
check.pl)

 

How can I handle this error on IIS or may be change line 820 in check.pl?
Unfortunately, I do not know perl.

print Encode::encode('UTF-8', $template->output);

 

Sample code below:

-------------------------------------

        public static void Validate()

        {

                        string url =
"http://localhost/HtmlValidator/htdocs/check.pl?uri=" +
"http://www.milliyet.com.tr" + "&output=soap12";

                        XDocument urlDocument = XDocument.Load(url);

                        Console.Write(urlDocument.ToString());

                        Console.Read();

        }

 

        static void Main(string[] args)

        {

            Validate();

        }

------------------------------------- 

Received on Sunday, 28 November 2010 14:58:03 UTC