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


返回包含与指定 URI 关联的 Cookie 的 HTTP 头部。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | 用于构建标头名称的 URI。 |

### ReturnValue

包含与指定 URI 关联的 cookie 的 HTTP 标头。

## 另见

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Uri](../../../system/uri/)
* Class [CookieContainer](../)
* Namespace [System::Net](../../)
* Library [Aspose.Font for C++](../../../)
## CookieContainer::GetCookieHeader(System::SharedPtr\<Uri\>, String\&) method


返回包含与指定 URI 关联的 Cookie 的 HTTP 头部。

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | 用于构建标头名称的 URI。 |
| optCookie2 | String\& | 输出参数，将在其中分配具有最大支持版本的 cookie。 |

### ReturnValue

包含与指定 URI 关联的 cookie 的 HTTP 标头。

## 另见

* Class [String](../../../system/string/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Uri](../../../system/uri/)
* Class [CookieContainer](../)
* Namespace [System::Net](../../)
* Library [Aspose.Font for C++](../../../)
