HTTP_ENCODE_URL(3)

NAME
http_encode_url - allocates a percent-encoded null-terminated string

SYNOPSIS

#include <slweb/http.h>

char *http_encode_url(const char *url);

DESCRIPTION
The http_encode_url() function encodes the null-terminated string given by url using percent-encoding as defined by RFC 3986.

RETURN VALUE
On success, a valid pointer to a percent-encoded, null-terminated string is returned. On failure, a null pointer is returned.

ERRORS
No errors are defined.

SEE ALSO
http_decode_url(3), slweb_http(7).

COPYRIGHT
Copyright (C) 2023 Xavier Del Campo Romero.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.