Asterisk - The Open Source Telephony Project GIT-master-0bf3178
Data Fields
curl_header_data Struct Reference

Context structure passed to ast_curl_header_default_cb. More...

#include <curl_utils.h>

Collaboration diagram for curl_header_data:
Collaboration graph
[legend]

Data Fields

int _capture
 
char * debug_info
 
struct ast_variableheaders
 
size_t max_header_len
 

Detailed Description

Context structure passed to ast_curl_header_default_cb.

Definition at line 163 of file curl_utils.h.

Field Documentation

◆ _capture

int _capture

Definition at line 191 of file curl_utils.h.

Referenced by curl_header_cb().

◆ debug_info

char* debug_info

Identifying info placed at the start of log and trace messages.

Definition at line 177 of file curl_utils.h.

Referenced by curl_download_to_memory(), curl_header_cb(), and curl_header_data_free().

◆ headers

struct ast_variable* headers

This list will contain all the headers received.

Note
curl converts all header names to lower case.

Definition at line 182 of file curl_utils.h.

Referenced by curl_download_to_memory(), curl_header_cb(), and curl_header_data_free().

◆ max_header_len

size_t max_header_len

curl's default max header length is 100k but we rarely need that much. It's also possible that a malicious remote server could send tons of 100k headers in an attempt to cause an out-of-memory condition. Setting this value will cause us to simply ignore any header with a length that exceeds it. If not set, the length defined in AST_CURL_DEFAULT_MAX_HEADER_LEN will be used.

Definition at line 173 of file curl_utils.h.

Referenced by curl_header_cb().


The documentation for this struct was generated from the following file: