string url = "PenyuApi.aspx?user=" + user + "&pass=" + pasword;
WebRequest request = WebRequest.Create(url);
request.Timeout
= 30000; //5 sec call
WebResponse response = request.GetResponse();
StreamReader stream = new StreamReader(response.GetResponseStream());
string Contents
= stream.ReadToEnd();
No comments:
Post a Comment