[Mono-list] Alternatives to HttpWebRequest.DefaultMaximumErrorResponseLength property

Jim Evans Seattlewonderboy at hotmail.com
Tue Jun 1 11:57:53 EDT 2010

I am interfacing with a service (Selenium WebDriver remote server) that
responds with an error that can contain a body larger than 64k. In the
Microsoft .NET Framework, error response bodies are limited to 64k, unless
you set the static HttpWebRequest.DefaultMaximumErrorResponseLength property
to allow a longer response length. A value of -1 implies an unlimited size
to the response length for an error response.

In Mono, this property is not implemented. Rather than just submitting a bug
right off the bat, I thought I'd ask if there were alternatives to this.
Does Mono restrict the size of an error response received in an
HttpWebRequest? If so, how can I change this restriction? If not, what are
my alternatives here?

A search of the archives has not been fruitful, nor has searching the wider
web, but I may not have been using the right combination of search terms.
The documentation has not provided any guidance either. If someone could
please point me in the right direction where to find the answers, that would
be helpful.
View this message in context: http://mono.1490590.n4.nabble.com/Alternatives-to-HttpWebRequest-DefaultMaximumErrorResponseLength-property-tp2238774p2238774.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list