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
Arun Potti
164
11.4k
915.8k
Error in Sending SMS to mobile using Way2SMS in ASP.Net c# application
Aug 25 2012 10:00 AM
I am using the following code to send sms using way2sms and i am getting the following error,
Using System.IO;
Using System.Net;
public void send(string uid, string password, string message, string no)
{
try
{
HttpWebRequest myReq =
(HttpWebRequest)WebRequest.Create("http://ubaid.tk/sms/sms.aspx?uid=" + uid + "&pwd=" + password +
"&msg=" + message + "&phone=" + no + "&provider=way2sms"); HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse(); System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream()); string responseString = respStreamReader.ReadToEnd(); respStreamReader.Close(); myResp.Close(); }
catch (Exception er)
{
MessageBox.Show(er.Message);
}
Error:
System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.GetResponse()
at SMS.Form1.send(String uid, String password, String message, String no)
Can any one help how to handle this error ??
Thanks in Advance.
Reply
Answers (
2
)
for captcha i used the following code
Type cating