Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 17th, 2007, 02:40 PM
Registered User
 
Join Date: Dec 2006
Location: Oslo, , Norway.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fetching html from website

Hello,

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?
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:48 PM.


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