GDAL

Public Attributes | List of all members
CPLHTTPResult Struct Reference

`#include <cpl_http.h>`

## Public Attributes
int | nStatus
char * | pszContentType
char * | pszErrBuf
int | nDataLen
int | nDataAlloc
GByte * | pabyData
char ** | papszHeaders
int | nMimePartCount
CPLMimePart * | pasMimePart

## Detailed Description

Describe the result of a CPLHTTPFetch() call

## Member Data Documentation

## ◆ nDataAlloc

int CPLHTTPResult::nDataAlloc

Allocated size of the pabyData buffer

## ◆ nDataLen

int CPLHTTPResult::nDataLen

Length of the pabyData buffer

## ◆ nMimePartCount

int CPLHTTPResult::nMimePartCount

Number of parts in a multipart message

## ◆ nStatus

int CPLHTTPResult::nStatus

cURL error code : 0=success, non-zero if request failed

## ◆ pabyData

GByte* CPLHTTPResult::pabyData

Buffer with downloaded data

## ◆ papszHeaders

char** CPLHTTPResult::papszHeaders

Headers returned

## ◆ pasMimePart

CPLMimePart* CPLHTTPResult::pasMimePart

Array of parts (resolved by CPLHTTPParseMultipartMime())

## ◆ pszContentType

char* CPLHTTPResult::pszContentType

Content-Type of the response

## ◆ pszErrBuf

char* CPLHTTPResult::pszErrBuf

Error message from curl, or NULL

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

- cpl_http.h