Subversion Repositories Kolibri OS

Rev

Rev 4221 | Rev 4541 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4221 Rev 4242
Line 1... Line 1...
1
get(*url, *add_header);
1
get(*url, *add_header);
2
	*url = pointer to ASCIIZ URL
2
	*url = pointer to ASCIIZ URL
3
	*add_header = pointer to ASCIIZ additional header parameters, or null for none.
3
	*add_header = pointer to ASCIIZ additional header parameters, or null for none.
-
 
4
			Every additional parameter must end with CR LF bytes, including the last line.
4
Initiates a HTTP connection, using 'GET' method.
5
Initiates a HTTP connection, using 'GET' method.
5
 - returns 0 on error, identifier otherwise.
6
 - returns 0 on error, identifier otherwise.
Line 6... Line 7...
6
 
7
 
7
head(*url, *add_header);
8
head(*url, *add_header);
8
	*url = pointer to ASCIIZ URL
9
	*url = pointer to ASCIIZ URL
-
 
10
	*add_header = pointer to ASCIIZ additional header parameters, or null for none.	
9
	*add_header = pointer to ASCIIZ additional header parameters, or null for none.	
11
			Every additional parameter must end with CR LF bytes, including the last line.	
10
Initiate a HTTP connection, using 'HEAD' method.
12
Initiate a HTTP connection, using 'HEAD' method.
Line 11... Line 13...
11
 - returns 0 on error, identifier otherwise
13
 - returns 0 on error, identifier otherwise
12
 
14
 
13
post(*url, *add_header, *content-type, content-length);
15
post(*url, *add_header, *content-type, content-length);
-
 
16
	*url = pointer to ASCIIZ URL
14
	*url = pointer to ASCIIZ URL
17
	*add_header = pointer to ASCIIZ additional header parameters, or null for none.	
15
	*add_header = pointer to ASCIIZ additional header parameters, or null for none.	
18
			Every additional parameter must end with CR LF bytes, including the last line.
16
	*content-type = pointer to ASCIIZ string containing content type.
19
	*content-type = pointer to ASCIIZ string containing content type.
17
	content-length = length of the content (in bytes).
20
	content-length = length of the content (in bytes).
18
Initiate a HTTP connection, using 'POST' method.
21
Initiate a HTTP connection, using 'POST' method.