HTTP lib: updated documentation

git-svn-id: svn://kolibrios.org@4242 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2013-11-16 20:22:44 +00:00
parent 6cfbb43cef
commit bf29240050

View File

@ -2,18 +2,21 @@
get(*url, *add_header); get(*url, *add_header);
*url = pointer to ASCIIZ URL *url = pointer to ASCIIZ URL
*add_header = pointer to ASCIIZ additional header parameters, or null for none. *add_header = pointer to ASCIIZ additional header parameters, or null for none.
Every additional parameter must end with CR LF bytes, including the last line.
Initiates a HTTP connection, using 'GET' method. Initiates a HTTP connection, using 'GET' method.
- returns 0 on error, identifier otherwise. - returns 0 on error, identifier otherwise.
head(*url, *add_header); head(*url, *add_header);
*url = pointer to ASCIIZ URL *url = pointer to ASCIIZ URL
*add_header = pointer to ASCIIZ additional header parameters, or null for none. *add_header = pointer to ASCIIZ additional header parameters, or null for none.
Every additional parameter must end with CR LF bytes, including the last line.
Initiate a HTTP connection, using 'HEAD' method. Initiate a HTTP connection, using 'HEAD' method.
- returns 0 on error, identifier otherwise - returns 0 on error, identifier otherwise
post(*url, *add_header, *content-type, content-length); post(*url, *add_header, *content-type, content-length);
*url = pointer to ASCIIZ URL *url = pointer to ASCIIZ URL
*add_header = pointer to ASCIIZ additional header parameters, or null for none. *add_header = pointer to ASCIIZ additional header parameters, or null for none.
Every additional parameter must end with CR LF bytes, including the last line.
*content-type = pointer to ASCIIZ string containing content type. *content-type = pointer to ASCIIZ string containing content type.
content-length = length of the content (in bytes). content-length = length of the content (in bytes).
Initiate a HTTP connection, using 'POST' method. Initiate a HTTP connection, using 'POST' method.