Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
call http url in c # dot net
tarun janveja
7y
220
1
Reply
Hi,
i have below function for hitting 3 party url for every request in console application ,but aftter hitiing for 30-35 request below function works very slow .i have 5 lac request every day due to slow responde after 30-35 request code works very slow ,how to fast the response. 3 party url is on public ip,there is no bandwidth problem and 3 party url,please help me
protected string getDirectUrl(string URL)
{
String strReply = "Success";
try
{
WebRequest request = WebRequest.Create(URL);
WebResponse response = request.GetResponse();
new StreamReader(response.GetResponseStream()).ReadToEnd();
response.Close();
}
catch (Exception ex)
{
this.WriteToFile("#Exception Message getDirectUrl# " + ex.Message);
return strReply;
}
return strReply;
}
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
what is default concurrent requests settings in IIS 8.5
Need Help in Query ?