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

# HTTP.getURL\_1(3kaya)

Retrieve a URL by HTTP using an existing connection.

## NAME

HTTP::getURL - Retrieve a URL by HTTP using an existing connection.

## SYNOPSIS

**Void getURL(** *NetHandle h, HTTPURL url, \[Pair\<String, String\> \] headers=createArray(1), HTTPversion version=HTTP10* **)**

## ARGUMENTS

**h** An established network connection.

**url** A **HTTP.HTTPURL (3kaya)**

**headers** A list of key/value pairs of extra HTTP headers (optional, defaulting to the empty list)

**version** The HTTP version

## DESCRIPTION

Retrieve a URL by HTTP using an existing connection. The connection will then be ready to receive response data.

## 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.basicAuthHeader (3kaya)**

**HTTP.parseURL (3kaya)**

**HTTP.getURL (3kaya)**

**HTTP.postURL (3kaya)**
