|
NAMEhttp_servlet_redirect —
HTTP redirect servlet
LIBRARYPDEL Library (libpdel, -lpdel)SYNOPSIS#include <sys/types.h>
#include <stdio.h>
#include <netinet/in.h>
#include <openssl/ssl.h>
#include <pdel/http/http_defs.h>
#include
<pdel/http/http_server.h>
#include
<pdel/http/servlet/redirect.h>
struct http_servlet *
DESCRIPTIONhttp_servlet_redirect_create () creates a new servlet
that responds to all queries with an HTTP "302 Found" status code
and supplies the new redirect URL url in the
"Location" header. This causes the client to retry the transaction
at the new URL.
The append_url argument determines whether and how the originally requested URL is included in the redirect URL and may equal one of the following:
RETURN VALUESOn failure,http_servlet_redirect_create () returns
NULL and sets errno to an
appropriate value.
SEE ALSOhttp_request(3), http_response(3), http_server(3), http_servlet(3), libpdel(3)HISTORYThe PDEL library was developed at Packet Design, LLC.http://www.packetdesign.com/
AUTHORSArchie Cobbs ⟨archie@freebsd.org⟩
Visit the GSP FreeBSD Man Page Interface. |