1HTTP.postURL(3kaya)          Kaya module reference         HTTP.postURL(3kaya)
2
3
4

NAME

6       HTTP::postURL - Post data to a URL by HTTP.
7

SYNOPSIS

9       String postURL( String post, HTTPURL url, [Pair<String, String> ] head‐
10       ers=createArray(1), HTTPversion version=HTTP10, [String] certfiles=[] )
11

ARGUMENTS

13       post The data to  post,  encoded  as  application/x-www-form-urlencoded
14       data
15
16       url A HTTP.HTTPURL (3kaya)
17
18
19       headers  A  list  of  key/value  pairs of extra HTTP headers (optional,
20       defaulting to the empty list)
21
22       version The HTTP version
23
24       certfiles A list of SSL certificate files, each containing one or  more
25       PEM encoded certificates of trusted Certification Authorities, used for
26       HTTPS connections. This list may be empty (the default),  but  this  is
27       much less secure. For HTTP connections, this parameter is ignored.
28

DESCRIPTION

30       Post  data  to a URL by HTTP. The String returned will contain the HTTP
31       response headers and response body  exactly  as  sent  by  the  server.
32       Because  Strings may not contain null bytes, this function is not suit‐
33       able for requests that may return binary data.
34

AUTHORS

36       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
37       (kaya@kayalang.org). For further information see http://kayalang.org/
38

LICENSE

40       The  Kaya  standard  library  is free software; you can redistribute it
41       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
42       License  (version  2.1  or  any later version) as published by the Free
43       Software Foundation.
44
46       HTTP.basicAuthHeader (3kaya)
47       HTTP.getURL (3kaya)
48       HTTP.parseURL (3kaya)
49
50
51
52Kaya                             December 2010             HTTP.postURL(3kaya)
Impressum