HTTP.basicAuthHeader(3kaya)
NAME
HTTP::basicAuthHeader - Create a Basic authentication header
SYNOPSIS
Pair<String, String> basicAuthHeader( String user, String pwd )
ARGUMENTS
user The username
pwd The password
DESCRIPTION
Creates an authentication header suitable for HTTP Basic Auth. The
username may not contain a ':' character. Remember that this form of
authentication is very insecure, and so should only be used over secure
connections.
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others
(kaya@kayalang.org). For further information see http://kayalang.org/
LICENSE
The Kaya standard library is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public
License (version 2.1 or any later version) as published by the Free
Software Foundation.
RELATED
- HTTP.getURL (3kaya)
HTTP.postURL (3kaya)