## WebHeaderCollection::idx_get(HttpRequestHeader) method


Gets the header value using the specified request's header.

```cpp
String System::Net::WebHeaderCollection::idx_get(HttpRequestHeader header)
```


| Parameter | Type | Description |
| --- | --- | --- |
| header | HttpRequestHeader | The header. |

### ReturnValue

The header value using the specified header.

## See Also

* Class [String](../../../system/string/)
* Enum [HttpRequestHeader](../../httprequestheader/)
* Class [WebHeaderCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## WebHeaderCollection::idx_get(HttpResponseHeader) method


Gets the header value using the specified response's header.

```cpp
String System::Net::WebHeaderCollection::idx_get(HttpResponseHeader header)
```


| Parameter | Type | Description |
| --- | --- | --- |
| header | HttpResponseHeader | The header. |

### ReturnValue

The header value using the specified header.

## See Also

* Class [String](../../../system/string/)
* Enum [HttpResponseHeader](../../httpresponseheader/)
* Class [WebHeaderCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
## WebHeaderCollection::idx_get(String) method


Gets the header value using the specified header name.

```cpp
String System::Net::WebHeaderCollection::idx_get(String name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The header name. |

### ReturnValue

The header value using the specified header name.

## See Also

* Class [String](../../../system/string/)
* Class [WebHeaderCollection](../)
* Namespace [System::Net](../../)
* Library [Aspose.Page for C++](../../../)
