[Mono-osx] HttpWebRequest fails when Method="PROPFIND"

Simplicity theguide76 at hotmail.com
Fri Jun 12 16:46:40 EDT 2009


Hi All,

New to Mono, so apologies in advance if this is the wrong place for this.


Simple and to the point, PROPFIND does not work on the OSX version of Mono.

            hwr.Method = "PROPFIND";
            Console.WriteLine(hwr.Method);

            HttpWebResponse response = (HttpWebResponse)hwr.GetResponse();

            Console.WriteLine("Got Response");

            using (StreamReader sr = new
StreamReader(response.GetResponseStream()))
            {}

This code snippet will produce :

Unhandled Exception: System.Net.WebException: The request timed out
  at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult)
[0x00000] 
  at System.Net.HttpWebRequest.GetResponse () [0x00000] 

The same snippet runs quite well on the Windows version of Mono, so it seems
limited to the OSX version.  Running the code through a sniffer, I see the
OSX version does not even open the port.  Changing the Verb (Method) to GET,
everything does work.

Thought someone should know. :) 
-- 
View this message in context: http://www.nabble.com/HttpWebRequest-fails-when-Method%3D%22PROPFIND%22-tp24005831p24005831.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list