KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
For some reason beyond my understanding requests made to a perticular website ( https://learningnetwork.cisco.com/people/mrollins?view=profile ) result in a reqsponse-object whose responsestream contain a trunkated version of the website. The stream ends after 65536 bytes, which equals 2^16 bytes. I consider that a suspiciously round number. The requests complains of an internal server error, which I surpress, because I have already verified both that webbrowsers are able to make sense of this response, and that the full html is included in the response from the server. (using fiddler ) I've found the problem previously documented here , which is unsatisfactory for the simple reason that it ends on this note: "I guess I'll have to hope the error doesn't exceed 65536 characters..." Well it does. Workarounds appreciated, or if anyone knows of an upcomming fix that is good too. using System; using System.IO; using System.Net; using System.Web.UI; namespace Example { public partial class _Default : Page { protected void Page_Load(object senderHidden, EventArgs eHidden) { //ServicePointManager.ServerCertificateValidationCallback += delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; }; var cookieContainer = new CookieContainer(); //Encoding enc = Encoding.UTF8; HttpWebRequest req = (HttpWebRequest)WebRequest.Create("https://learningnetwork.cisco.com/people/mrollins?view=profile"); req.AllowAutoRedirect = false; req.AutomaticDec
Tags (comma-separated)
Save Edits
Cancel