I am using HttpWebRequest to get an HttpWebResponse from an https://
site.
I am using cookies and certificates and everything seems to be working
properly EXCEPT...
The largest (html) document that I am trying to read is about 28788
bytes when downloaded using Firefox
but when my dotnet app tries to retrieve it, the response is only about
26580 bytes. Here is a code snippet:
HttpWebResponse response = (HttpWebRespons e) request.GetResp onse ( );
System.Text.Enc oding enc = System.Text.Enc oding.GetEncodi ng(1252); //
Windows default Code Page
System.IO.Strea mReader reader = new System.IO.Strea mReader(
response.GetRes ponseStream(), enc );
string content = reader.ReadToEn d();
reader.Close();
response.Close( );
I've tried different methods of StreamReader all with the same results.
Can anyone tell me where the last 2KB of my response is going and how
I can get it back?
Muchas grathias,
Dean
site.
I am using cookies and certificates and everything seems to be working
properly EXCEPT...
The largest (html) document that I am trying to read is about 28788
bytes when downloaded using Firefox
but when my dotnet app tries to retrieve it, the response is only about
26580 bytes. Here is a code snippet:
HttpWebResponse response = (HttpWebRespons e) request.GetResp onse ( );
System.Text.Enc oding enc = System.Text.Enc oding.GetEncodi ng(1252); //
Windows default Code Page
System.IO.Strea mReader reader = new System.IO.Strea mReader(
response.GetRes ponseStream(), enc );
string content = reader.ReadToEn d();
reader.Close();
response.Close( );
I've tried different methods of StreamReader all with the same results.
Can anyone tell me where the last 2KB of my response is going and how
I can get it back?
Muchas grathias,
Dean
Comment