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
Dan Raby
NA
3
0
[C#] HTTPwebrequest Multiple Authentications
Aug 11 2008 10:24 PM
I am creating a Windows Form App that reaches out to 2 devices every 3 seconds and pulls an XML file, parses the stats, and raises alarms. The devices that I am pulling the xml files from are password protected with Digest (nonce).
1. Send the first HTTP request
2. Catch the WebException and parse the 401 error for the nonce.
3. Generate the response.
4. Send the revised Request.
The problem I am having is that I have to do this every time I update the stats.
When I get the xml from a web browser, I only have to authenticate once, and it saves it. I am hoping there is a way to create a session or something so I don't have to repeat this 2 times every 3 seconds for 6 hours.
I have code to post. I am hoping it is something that can be solved without it.
Reply
Answers (
1
)
NP120 understanding instance
take off last character of a word