ZennoLab Assemblies Documentation
Get(String,String) Method
Example 
ZennoLab.InterfacesLibrary.ProjectModel Namespace > ICookieContainer Interface > Get Method : Get(String,String) Method

Type: System.String

The host.

Type: System.String

The path.

Gets a collection of cookie items corresponding to the host and path.
Syntax

Parameters

host

Type: System.String

The host.

path

Type: System.String

The path.

Return Value

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

The cookie items collection.

Example
The following code example demonstrates the Get 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.Get("zennolab.com", "/");
// output to log info of cookie item
foreach(var item in items)
{
    project.SendInfoToLog(item.Name + " = " + item.Value);
}
Requirements

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

See Also

Reference

ICookieContainer Interface
ICookieContainer Members
Overload List