neon API reference NE_GET_STATUS(3)
NAME
ne_get_status - retrieve HTTP response status for request
SYNOPSIS
#include
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 ofne_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... */ elseprintf("Response status code was %d\n", ne_get_status(req)->code);
ne_request_destroy(req);
AUTHOR Joe OrtonAuthor. COPYRIGHT ATTRIBUTES
See attributes(5) for descriptions of the following attributes:_______________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE|
|____________________|__________________|_
| Availability | library/neon ||____________________|__________________|_
| Interface Stability| Volatile ||____________________|_________________|
NOTES Source for Neon is available on http://opensolaris.org. neon 0.29.0 Last change: 13 September 2009 1