Below error message was thrown when I tried to use HttpWebRequest object for getting response code from webpage.
system.net.webexception the operation has timed out
After doing google search I came to know that we can't use more than one connection for getting response from pages of same server.
So closing the connection using "Close()" after getting the response has resolved this issue.
And also, I came to know that just for finding whether a page exists, we need not get the all the response string. Using HttpWebRequest.method="HEAD" will get only the header part. This will improve the execution speed.
More Articles...
Shop at Rajamanickam.com | Birthday Gift Idea? | Hire me for $6 per Hour
Get 3 useful ebooks for Rs 99 in India and $5.99 globally
Get a 75% commission | ChatGPT and and Google Gemini for Beginners (Use Discount code QPT)
Search This Blog
Art of Talking to AI | Tech eBook | Dream Big | Listen to Dream Big
Today's Deals | Timesheet | Products | 3 ebooks for $5.99 / Rs 99 | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
Today's Deals | Timesheet | Products | 3 ebooks for $5.99 / Rs 99 | Earn 50% commission
About | Privacy | Follow | TOS | WhatsApp | Contact
I may earn a commission from Amazon affiliate links
No comments:
Post a Comment