GetCookieHeader()

CookieContainer::GetCookieHeader(System::SharedPtr<Uri>) method

Return an HTTP header that contains cookies associated with the specified URI.

String System::Net::CookieContainer::GetCookieHeader(System::SharedPtr<Uri> uri)

Arguments

ParameterTypeDescription
uriSystem::SharedPtr<Uri>An URI for which header name will be built.

Return Value

An HTTP header that contains cookies associated with the specified URI.

CookieContainer::GetCookieHeader(System::SharedPtr<Uri>, String&) method

Return an HTTP header that contains cookies associated with the specified URI.

String System::Net::CookieContainer::GetCookieHeader(System::SharedPtr<Uri> uri, String &optCookie2)

Arguments

ParameterTypeDescription
uriSystem::SharedPtr<Uri>An URI for which header name will be built.
optCookie2String&The output parameter where a cookie with the maximum supported version will be assigned.

Return Value

An HTTP header that contains cookies associated with the specified URI.

See Also