System::Net::CookieContainer::GetCookieHeader method

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)
ParameterTypeDescription
uriSystem::SharedPtr<Uri>An URI for which header name will be built.

ReturnValue

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

See Also

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)
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.

ReturnValue

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

See Also