TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rajveer singh
805
1k
249.6k
what KeepAlive property with Httpversion 11 true or false?
Apr 25 2017 12:37 AM
Dear all,
I'm using Httpwebrequset method and ProtocolVersion 11 after thar error raised
'
The underlying connection was closed: A connection that was expected to be kept alive was close by server
' how to resolved this issue
code here
HttpWebRequest req = (HttpWebRequest)(HttpWebRequest.Create(url));
req.Method = "POST";
req.ProtocolVersion = HttpVersion.Version11;
req.ContentType = "application/xml";
req.KeepAlive = false;req.Headers.Set(HttpRequestHeader.Authorization, "Basic jhfgshfghj==");
// d1 = DateTime.Now;
XmlDocument XDAuth = new XmlDocument();
XmlNode docNode = XDAuth.CreateXmlDeclaration("1.0", "UTF-8", "yes");
XDAuth.AppendChild(docNode);
XmlNode Root = XDAuth.AppendChild(XDAuth.CreateElement("xml"));
Reply
Answers (
11
)
Here is the screen shoot of DataGridView and expected result
Bind the Image value in div tag by using C# code