Click or drag to resize

HttpIdentity Class

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

Namespace:  IronWebScraper
Assembly:  IronWebScraper (in IronWebScraper.dll) Version: 4.0.4.25470 (4.0.4.3)
Syntax
public class HttpIdentity

The HttpIdentity type exposes the following members.

Constructors
  NameDescription
Public methodHttpIdentity
Initializes a new instance of the HttpIdentity class
Top
Properties
  NameDescription
Public propertyCookies
A "Cookie Jar" which persists http cookies for this browser identity.
Public propertyNetworkLoginCredential
Returns the System.Net.NetworkCredential which will be used on for networks and http authentication (Supports: Windows / NTLM / Keroberos / Linux / BSD / Mac)
Public propertyProxyFailureCount
Gets the number of times this proxy has failed.
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberDefaultHttpRequestHeaders
Default HTTP request headers to be assigned to every new identity.
Public fieldHttpRequestHeaders
The default headers which will be sent with all http Requests for this identity.
Public fieldNetworkDomain
The network domain to be used for user authentication. Supports Windows, NTLM , Keroberos, Linux, BSD and Mac OS X networks.

See also NetworkUsername, NetworkPassword

Public fieldNetworkPassword
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

Public fieldNetworkUsername
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

Public fieldProxy
A proxy string such as "102.192.92.192:8088" or "username:password@102.192.92.192"
Public fieldUseCookies
Stores a "Cookie Jar" which persists http cookies for this browser identity.
Public fieldUserAgent
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

Top
See Also