# CPLHTTPResult Struct Reference

`#include <cpl_http.h>`

List of all members.

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

## Detailed Description

Describe the result of a CPLHTTPFetch() call

## Member Data Documentation

int CPLHTTPResult::nDataLen

Length of the pabyData buffer

Referenced by CPLHTTPParseMultipartMime(), and OGRSpatialReference::importFromUrl().

int CPLHTTPResult::nMimePartCount

Number of parts in a multipart message

Referenced by CPLHTTPParseMultipartMime().

int CPLHTTPResult::nStatus

HTTP status code : 200=success, value < 0 if request failed

Referenced by CPLHTTPFetch(), and OGRSpatialReference::importFromUrl().

GByte* CPLHTTPResult::pabyData

Buffer with downloaded data

Referenced by CPLHTTPDestroyResult(), CPLHTTPParseMultipartMime(), and OGRSpatialReference::importFromUrl().

CPLMimePart* CPLHTTPResult::pasMimePart

Array of parts (resolved by CPLHTTPParseMultipartMime())

Referenced by CPLHTTPParseMultipartMime().

char* CPLHTTPResult::pszContentType

Content-Type of the response

Referenced by CPLHTTPDestroyResult(), CPLHTTPFetch(), and CPLHTTPParseMultipartMime().

char* CPLHTTPResult::pszErrBuf

Error message from curl, or NULL

Referenced by CPLHTTPDestroyResult(), CPLHTTPFetch(), and OGRSpatialReference::importFromUrl().

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

- cpl_http.h

Generated for GDAL by 1.5.7.1.