CURL.GetOptionHTTPHeader
------------------------

Queries HTTP request headers.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [8.2](newinversion82.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.GetOptionHTTPHeader"; curl ) 

**MBS**( **"CURL.GetOptionHTTPHeader";** /\* Queries HTTP request headers. \*/  
**$curl**) /\* The CURL session handle. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |

### Result

Returns list or error.

### Description

Queries HTTP request headers.  
### Examples

Set and get headers:

 Set Variable \[ $curl ; Value: MBS ("[CURL.New](CURLNew.md)") \]   
Set Variable \[ $r ; Value: MBS ( "[CURL.SetOptionHTTPHeader](CURLSetOptionHTTPHeader.md)"; $curl ; "Content-Type: application/json¶Test: hello"; "Other: 1234" ) \]   
Show Custom Dialog \[ "Headers" ; MBS ( "CURL.GetOptionHTTPHeader"; $curl ) \]  
### See also

- [CURL.AddOptionHTTPHeader](CURLAddOptionHTTPHeader.md)
- [CURL.GetOptionProxyHeader](CURLGetOptionProxyHeader.md)
- [CURL.New](CURLNew.md)
- [CURL.SetOptionHeader](CURLSetOptionHeader.md)
- [CURL.SetOptionHTTPHeader](CURLSetOptionHTTPHeader.md)
- [CURL.SetOptionHTTPVersion](CURLSetOptionHTTPVersion.md)
- [CURL.SetOptionProxyHeader](CURLSetOptionProxyHeader.md)

Created 16th April 2018 , last changed 17th April 2018

  
[CURL.GetOptionHTTP200Aliases](CURLGetOptionHTTP200Aliases.md) - [CURL.GetOptionMailRecipients](CURLGetOptionMailRecipients.md)

[HTML Version](CURLGetOptionHTTPHeader.shtml)