Linux repositories inspector

ne_get_status(3)

neon 0.30.2
30 September 2016

libneon27-dev

Header and static library files for libneon27

libneon27-gnutls-dev

Header and static library files for libneon27 (GnuTLS enabled)

neon-devel

Development libraries and C header files for the neon library

neon

HTTP and WebDAV client library with a C interface

libneon-devel

An HTTP and WebDAV Client Library

NAME

ne_get_status - retrieve HTTP response status for request

SYNOPSIS


#include <ne_request.h>
const ne_status *ne_get_status(const ne_request *request);

DESCRIPTION

The ne_get_status function returns a pointer to the HTTP status object giving the result of a request. The object returned only becomes valid once the request has been successfully dispatched (the return value of ne_request_dispatch or ne_begin_request was zero). The object remains valid until the associated request object is destroyed.

SEE ALSO

ne_status, ne_request_create

EXAMPLE

Display the response status code of applying the HEAD method to some resource.
ne_request *req = ne_request_create(sess, "HEAD", "/foo/bar");
if (ne_request_dispatch(req))
   /* handle errors... */
else
   printf("Response status code was %d\n", ne_get_status(req)->code);
ne_request_destroy(req);

AUTHOR

Joe Orton <>
Author.

⇧ Top