Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8626579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:04:01+00:00 2026-06-12T08:04:01+00:00

I am using HtmlAgilityPack to grab a table from a web page. HtmlWeb web

  • 0

I am using HtmlAgilityPack to grab a table from a web page.

HtmlWeb web = new HtmlWeb();
HtmlDocument doc = web.Load("http://test.com");

I am aware that HtmlWeb has a UserAgent property, however I have no idea how I am supposed to attach a user agent to the header of the httprequest.

HtmlWeb web = new HtmlWeb().UserAgent("asdf");

returns the error

Error   1   Non-invocable member 'HtmlAgilityPack.HtmlWeb.UserAgent' cannot be used like a method.

http://htmlagilitypack.codeplex.com/discussions HtmlAgilityPack support discussions appear as simply questions, but nobody on the other end to respond.

http://htmlagilitypack.codeplex.com/documentation There is NO documentation here yet.

http://htmlagilitypack.codeplex.com/downloads/get/437942 Tried downloading the documentation, to find that the chm file seems broken… I’m getting a Navigation to the webpage was cancelled error when I try to open anything within the chm documentation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:04:02+00:00Added an answer on June 12, 2026 at 8:04 am

    Just set the UserAgent property of the HtmlWeb object after instantiating it.

    HtmlWeb web = new HtmlWeb();
    web.UserAgent = "your useragent string here";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded the following page using wget and saved it in f.html http://www.ebay.com/sch/i.html?_nkw=gruen&_in_kw=1&_ex_kw=sara+quartz+embassy+bob+robert+elephants+adidas&_sacat=See-All-Categories&_okw=gruen&_oexkw=sara+quartz+embassy+bob+robert+elephants+adidas&_adv=1&_udlo=&_udhi=&_LH_Time=1&_ftrt=903&_ftrv=24&_sabdlo=&_sabdhi=&_samilow=&_samihi=&_sadis=200&_fpos=Zip+code&_fsct=&LH_SALE_CURRENCY=0&_sop=12&_dmd=1&_ipg=50
Hi I am using HtmlAgilityPack to scrap some data from web using c# .
I am using HtmlAgilityPack to parse my html doc, but I can't get the
I'm using HtmlAgilityPack how can I get the domain from the following objects? private
I have some test html page <!DOCTYPE html> <html lang=en xmlns=http://www.w3.org/1999/xhtml> <head> <meta charset=utf-8
I'm using HtmlAgilityPack and I'd like to select the value from inside the td
I want to extract information from various websites. I am using HtmlAgilityPack and Linq
I'm trying to extract text from HTML using HtmlAgilityPack. I successfully added HtmlAgilityPack to
I'm looking for a good html parser like HtmlAgilityPack (open-source .NET project: http://www.codeplex.com/htmlagilitypack ),
With using HtmlAgilityPack and c# 4.0 how can you determine whether page is being

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.