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
Administrator
Tech Writer
2.2k
1.5m
HttpWebRequest
Feb 24 2003 9:42 AM
Hi, I am trying to write an application which will POST to a URL by sending values for text box controls and the submit button. For some reason, the application does not think that I have sent enough info for a button click. What could I be doing wrong? HttpWebResponse result = null; HttpWebRequest request = (HttpWebRequest) HttpWebRequest.Create("http://localhost/dispatcher"); request.Method = "POST"; request.ContentType = "application/x-www-form-urlencoded"; byte [] bytes = null; string Parameters = "put_message=(filereadbuf)"; bytes = System.Text.Encoding.ASCII.GetBytes(Parameters); sr.Close(); request.ContentLength = bytes.Length; Stream OutputStream = request.GetRequestStream (); OutputStream.Write (bytes, 0, bytes.Length); OutputStream.Close (); result = (HttpWebResponse) request.GetResponse(); I get the following error: An unhandled exception of type 'System.Configuration.ConfigurationException' occurred in system.dll Additional information: Error loading XML file file: in the main app.config Please help..
Reply
Answers (
2
)
Listview
Inter Process Communication