Query: ne_get_status
OS: redhat
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)NAMEne_get_status - retrieve HTTP response status for requestSYNOPSIS#include <ne_request.h> const ne_status *ne_get_status (const ne_request *request);DESCRIPTIONThe ne_get_status function returns a pointer to the HTTP status object giving the result of a request (once dispatched). The object per- sists until the associated request is destroyed.SEE ALSOne_get_status(3), ne_request_create(3)EXAMPLEDisplay 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);AUTHORJoe Orton <neon@webdav.org>. neon 0.23.5 8 October 2002 NE_GET_STATUS(3)