HttpWebRequest TimeOut On an Https channel while posting data
-
Hi All, I am using HttpWebRequest and HttpWebResponse object to upload a file over HTTPS Channel. My code works fine when I upload a small size file (Less than 2K). When I try to upload a bigger file, HttpWebRequest is Timing Out.(The operation has timed-out.) Here is the snippet of the code I am using HttpWebResponse Resp = (HttpWebResponse) Req.GetResponse(); Stream responseStream = Resp.GetResponseStream(); Encoding enc = Encoding.GetEncoding(1252); // Windows default Code Page StreamReader loResponseStream = new StreamReader(responseStream,enc); string stringResponse = loResponseStream.ReadToEnd(); LogFileStream.WriteLine("Http Response: " + Resp.StatusCode + " " + DateTime.Now.ToString().Trim()+"\n"); responseStream.Close(); oResponseStream.Close(); Does any body having clue what to do in such kind of scenario?? Thanks in advance. Satya Satya