View Single Post
 
Old January 11th, 2007, 08:07 AM
Sunnys Sunnys is offline
Authorized User
 
Join Date: Dec 2006
Location: , , India.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sunnys Send a message via Yahoo to Sunnys
Default Problem in HttpRequest?

hi,
My problem is i am getting error "This stream does not support seek operations" at System.Net.ConnectStream.get_Length().
i am working on HttpWebRequest object .

code is
strPost="Some String";
HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(Url);
        objRequest.Method = "POST";
        objRequest.ContentLength = strPost.Length;
        objRequest.ContentType = "application/x-www-form-urlencoded";
objRequest.Credentials = new NetworkCredential(Username,Password);
Stream strRequest=objRequest.GetRequestStream();

Can anybody has idea on this

thanks