I am using HTML agility DL开发者_如何学CL for getting images and title of external website link. when I try to load title from the website. http://www.gettyimages.com then I getting wrong title. I getting title "Getty Images - Unsupported browser detected "
whats going wrong?
I don't think it has anything to to with the Html Agility Pack. It seems that Getty Images checks your request's "User-Agent" http header and changes the title of the returned HTML. You can try pretending to be Firefox/IE by changing the user agent to work around that or just cut it off.
See http://www.dotnetperls.com/webclient for an example using WebClient to download the content.
精彩评论