---
name: "HTTP.basicAuthHeader"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTTP.basicAuthHeader"
---

# HTTP.basicAuthHeader(3kaya)

Create a Basic authentication header

## 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)**
