[Mono-dev] HttpWebRequest.DefaultMaximumErrorResponseLength property
Jim Evans
Seattlewonderboy at hotmail.com
Thu Jun 17 07:11:07 EDT 2010
I posted this question on mono-list, with no responses. I'm going to try this
here, to see if I can garner a better response. 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 other words the following line of code
works in .NET, but not Mono:
HttpWebRequest.DefaultMaximumErrorResponseLength = -1;
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, I suppose
I could test to see if I am running under Mono, but are there any other
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/HttpWebRequest-DefaultMaximumErrorResponseLength-property-tp2258605p2258605.html
Sent from the Mono - Dev mailing list archive at Nabble.com.
More information about the Mono-devel-list
mailing list