# HTTPSecureSocket Header(HeaderName) ?

**URL:** <https://forum.xojo.com/t/httpsecuresocket-header-headername/44353>\
**Category:** General\
**Created:** [July 14, 2018, 9:10am UTC](https://forum.xojo.com/t/httpsecuresocket-header-headername/44353 "2018-07-14T09:10:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [July 14, 2018, 9:10am UTC](https://forum.xojo.com/t/httpsecuresocket-header-headername/44353/1 "2018-07-14T09:10:24Z")

</div>

I am actually searching a specific header with a secure connection and failed.

What I found is:

```auto
socket1.SetRequestHeader("Content-Type","text/xml")
```

But I do not want to `set` a Header, but:

```auto
Mime = Socket1.GetRequestHeader("Content-Type")
```

and have text/xml stored into Mime.

Yes, `HTTPSecureSocket.GetHeaders(URL As String) As String` exists, and I used it.

`HTTPSocket` have such facility.

Must I use the String commands to get the Headers I want ? Or did I overlooked the needed stuff ?

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [July 14, 2018, 9:37am UTC](https://forum.xojo.com/t/httpsecuresocket-header-headername/44353/2 "2018-07-14T09:37:06Z")

</div>

Not completely awaken. The answer is:

```auto
My_Headers.Value("Content-Type") 
```

I was not searching at the right location.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 7:17pm UTC](https://forum.xojo.com/t/httpsecuresocket-header-headername/44353/3 "2020-10-29T19:17:06Z")

</div>


