opensolaris man page for ne_get_status

Query: ne_get_status

OS: opensolaris

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

NE_GET_STATUS(3)						neon API reference						  NE_GET_STATUS(3)

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(3), ne_request_create(3)
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 ", ne_get_status(req)->code); ne_request_destroy(req);
AUTHOR
Joe Orton <neon@webdav.org>.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +--------------------+-----------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +--------------------+-----------------+ |Availability | SUNWneon | +--------------------+-----------------+ |Interface Stability | Volatile | +--------------------+-----------------+
NOTES
Source for Neon is available on http://opensolaris.org. neon 0.25.5 20 January 2006 NE_GET_STATUS(3)
Related Man Pages
ne_get_status(3) - opensolaris
ne_request_dispatch(3) - opensolaris
ne_response_header_iterate(3) - opensolaris
ne_request_dispatch(3) - debian
ne_request_create(3) - centos
Similar Topics in the Unix Linux Community
neon 0.28.0 (Default branch)
neon 0.28.1 (Default branch)
neon 0.28.2 (Default branch)
neon 0.28.3 (Default branch)
neon 0.28.4 (Default branch)