Search Results for

    Show / Hide Table of Contents

    Class HttpIdentity

    A class defining the browsing 'identity' to be used to fetch a given Url. Contains Proxy, UserAgent and Http Header information.

    Inheritance
    System.Object
    HttpIdentity
    Namespace: IronWebScraper
    Assembly: IronWebScraper.dll
    Syntax
    public class HttpIdentity : Object

    Constructors

    HttpIdentity()

    Declaration
    public HttpIdentity()

    Fields

    DefaultHttpRequestHeaders

    Default HTTP request headers to be assigned to every new identity.

    Declaration
    public static Dictionary<string, string> DefaultHttpRequestHeaders
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>

    HttpRequestHeaders

    The default headers which will be sent with all http Requests for this identity.

    Declaration
    public Dictionary<string, string> HttpRequestHeaders
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>

    NetworkDomain

    The network domain to be used for user authentication. Supports Windows, NTLM , Keroberos, Linux, BSD and Mac OS X networks.

    See also NetworkUsername, NetworkPassword

    Declaration
    public string NetworkDomain
    Field Value
    Type Description
    System.String

    NetworkPassword

    The network/http password to be used for user authentication. Supports Http , Windows networks, NTLM , Keroberos , Linux networks, BSD networks and Mac OS X networks.

    See also NetworkUsername, NetworkDomain

    Declaration
    public string NetworkPassword
    Field Value
    Type Description
    System.String

    NetworkUsername

    The network/http username to be used for user authentication. Supports Http , Windows networks, NTLM , Keroberos , Linux networks, BSD networks and Mac OS X networks.

    See also NetworkPassword, NetworkDomain

    Declaration
    public string NetworkUsername
    Field Value
    Type Description
    System.String

    Proxy

    A proxy string such as "102.192.92.192:8088" or "username:password@102.192.92.192"

    Declaration
    public string Proxy
    Field Value
    Type Description
    System.String

    UseCookies

    Stores a "Cookie Jar" which persists http cookies for this browser identity.

    Declaration
    public bool UseCookies
    Field Value
    Type Description
    System.Boolean

    UserAgent

    A default User-Agent header string. E.g: "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36".

    Find examples online at: http://www.useragentstring.com/pages/useragentstring.php

    Declaration
    public string UserAgent
    Field Value
    Type Description
    System.String

    Properties

    Cookies

    A "Cookie Jar" which persists http cookies for this browser identity.

    Declaration
    public CookieContainer Cookies { get; }
    Property Value
    Type Description
    System.Net.CookieContainer

    NetworkLoginCredential

    Returns the System.Net.NetworkCredential which will be used on for networks and http authentication (Supports: Windows / NTLM / Keroberos / Linux / BSD / Mac)

    Declaration
    public NetworkCredential NetworkLoginCredential { get; }
    Property Value
    Type Description
    System.Net.NetworkCredential

    ProxyFailureCount

    Gets the number of times this proxy has failed.

    Declaration
    public int ProxyFailureCount { get; }
    Property Value
    Type Description
    System.Int32

    The proxy failure count.

    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    IronWebscraper_for_dotnet_log2o
    Blue key in circleGet started for FREE
    No credit card required
    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    24/5 technical support

    Full access to our support engineering team during your product trial

    Grey key in circleGet started for FREE
    The trial form was submitted successfully.
    Calendar in circleBook Free Live Demo
    No contact, no card details, no commitments Book a 30-minute, personal demo.
    Here's what to expect:

    A live demo of our product and its key features

    Get project specific feature recommendations

    All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)

    Grey key in circleBook Free Live Demo
    Your booking has been completed Check your e-mail for confirmation
    Support Team Member 6 related to The C# PDF Library Support Team Member 14 related to The C# PDF Library Support Team Member 4 related to The C# PDF Library Support Team Member 2 related to The C# PDF Library
    Online 24/5
    Need help? Our sales team would be glad to help you.
    Try the Enterprise Trial
    ironpdf_for_dotnet_log2o
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    bullet_checkedNo credit card or account creation required
    Key in blue circle
    Get your free 30-day Trial Key instantly.
    Blue key in circleNo credit card or account creation required
    Green Check in orange circle
    The trial form was submitted successfully.
    badge_greencheck_in_yellowcircle
    Thank you for starting a trial

    Please check your email for the trial license key.

    If you don’t receive an email, please start a live chat or email support@ironsoftware.com

    Install with NuGet
    View Licensing
    • Logo Aetna
    • Logo NASA
    • Logo GE
    • Logo Porsche
    • Logo USDA
    • Logo Qatar
    Join Millions of Engineers who’ve tried IronWebscraper