NE_SESSION_CREATE(3)

NAME
ne_session_create, ne_close_connection, ne_session_proxy, ne_session_destroy - Manipulate HTTP sessions

SYNOPSIS
#include <ne_session.h>

ne_session *ne_session_create (const char *scheme,
                              const char *hostname,
                              int port);

void ne_session_proxy (ne_session *session,
                       const char *hostname,
                       int port);

int ne_close_connection (ne_sesssion *session);

void ne_session_destroy (ne_session *session);

DESCRIPTION

An ne_session * object is used to group a sequence of HTTP requests made to a certain server. Requests made using the session can use a persistent connection, share authentication credentials, and so on. If scheme is passed as "https", SSL will be used for the session.

RETURN VALUES

ne_session_create will always return a valid session (and never NULL).

EXAMPLES

Create and initialize a session:
ne_session *sess;
sess = ne_session_create("http", "host.example.com", 80);
/* ... use sess ... */
ne_session_destroy(sess);

AUTHOR
Joe Orton <neon@webdav.org>.