1HTTP.getURL(3kaya) Kaya module reference HTTP.getURL(3kaya)
2
3
4
6 HTTP::getURL - Retrieve a URL by HTTP.
7
9 String getURL( HTTPURL url, [Pair<String, String> ] headers=createAr‐
10 ray(1), HTTPversion version=HTTP10, [String] certfiles=[] )
11
13 url A HTTP.HTTPURL (3kaya)
14
15
16 headers A list of key/value pairs of extra HTTP headers (optional,
17 defaulting to the empty list)
18
19 version The HTTP version
20
21 certfiles A list of SSL certificate files, each containing one or more
22 PEM encoded certificates of trusted Certification Authorities, used for
23 HTTPS connections. This list may be empty (the default), but this is
24 much less secure. For HTTP connections, this parameter is ignored.
25
27 Retrieve a URL by HTTP. The String returned will contain the HTTP
28 response headers and response body exactly as sent by the server.
29 Because Strings may not contain null bytes, this function is not suit‐
30 able for retrieving binary data.
31
33 Kaya standard library by Edwin Brady, Chris Morris and others
34 (kaya@kayalang.org). For further information see http://kayalang.org/
35
37 The Kaya standard library is free software; you can redistribute it
38 and/or modify it under the terms of the GNU Lesser General Public
39 License (version 2.1 or any later version) as published by the Free
40 Software Foundation.
41
43 HTTP.basicAuthHeader (3kaya)
44 HTTP.parseURL (3kaya)
45 HTTP.postURL (3kaya)
46
47
48
49Kaya December 2010 HTTP.getURL(3kaya)