Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 17th, 2007, 02:40 PM
Registered User
Join Date: Dec 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fetching html from website


I`m working on a website that reads the html-code of other websites. This works very well, but on some external links does`nt work.

A part of the code looks like this:
//first I connect to the url.
WebRequest req = WebRequest.Create(link);

//then I fetches the response from the server. This is where things //stops on some websites, and I`m getting a timeout.
WebResponse res = req.GetResponse();

If the link I try to connect to is for instance http://www.sting.com the webresponse times out. If I change it to http://www.imdb.com it works fine. I guess maybe something on the page www.sting.com blocks my application? Anyone know a way around this?

Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a html page in a website abhi_loveu2002 HTML Code Clinic 1 December 4th, 2006 05:19 AM
fetching records from website avats General .NET 0 November 3rd, 2005 03:36 PM
can't save html /css website !! ca123 CSS Cascading Style Sheets 2 November 15th, 2004 07:29 PM
Fetching Newkid Classic ASP XML 2 October 22nd, 2004 03:17 PM
Reading html file from website vijaya_murali Java GUI 1 July 26th, 2004 09:33 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.