ZennoLab Assemblies Documentation
GetPairs(String) Method
Example 
ZennoLab.CommandCenter Namespace > CookieContainer Class > GetPairs Method : GetPairs(String) Method

Type: System.String

The host.

Gets a collection of cookie strings corresponding to the host. Format is "name=value"
Syntax
public IEnumerable<string> GetPairs( 
   string host
)

Parameters

host

Type: System.String

The host.

Return Value

Type: System.Collection.Generic.IEnumerable<String>

The cookie strings collection.

Example
The following code example demonstrates the GetPairs method.
// http request
ZennoPoster.HTTP.Request(InterfacesLibrary.Enums.Http.HttpMethod.GET, "https://zennolab.com", cookieContainer: project.Profile.CookieContainer);
// get cookie items
var items = project.Profile.CookieContainer.GetPairs("zennolab.com");
// output to log info of cookie item
foreach(var item in items)
{
    project.SendInfoToLog(item);
}
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

CookieContainer Class
CookieContainer Members
Overload List