Monday, April 6, 2009

Length Required error For Mozilla(Error Code-411)

Hi Friends..

While you Developing webapplication with XmlHttp Object
If You Get This error With Error Code 411.
You can Solve this By Spacyfying Content Length Property Of XmlHttp object.."GET","Your Url Generationg Response.aspx .ashx",true);
xmlhttp.setRequestHeader('Content-Type', 'text/html');
xmlhttp.setRequestHeader('Content-length', '1000');

This Error Occurs only in Mozilla not on Safari and I.E