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


Restituisce un'intestazione HTTP che contiene i cookie associati all'URI specificato.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Un URI per il quale verrà costruito il nome dell'intestazione. |

### ReturnValue

Un'intestazione HTTP che contiene i cookie associati all'URI specificato.

## Vedi anche

* 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


Restituisce un'intestazione HTTP che contiene i cookie associati all'URI specificato.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| uri | System::SharedPtr\<Uri\> | Un URI per il quale verrà costruito il nome dell'intestazione. |
| optCookie2 | String\& | Il parametro di output dove verrà assegnato un cookie con la versione massima supportata. |

### ReturnValue

Un'intestazione HTTP che contiene i cookie associati all'URI specificato.

## Vedi anche

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