Rev 4221 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4168 | hidnplayr | 1 | |
2 | *url = pointer to ASCIIZ URL |
||
3 | Initiates a HTTP connection, using 'GET' method. |
||
4 | - returns 0 on error, identifier otherwise. |
||
5 | |||
6 | |||
7 | *url = pointer to ASCIIZ URL |
||
8 | Initiate a HTTP connection, using 'HEAD' method. |
||
9 | - returns 0 on error, identifier otherwise |
||
10 | |||
11 | |||
12 | *url = pointer to ASCIIZ URL |
||
13 | *content-type = pointer to ASCIIZ string containing content type. |
||
14 | content-length = length of the content (in bytes). |
||
15 | Initiate a HTTP connection, using 'POST' method. |
||
16 | The content itself must be send to the socket (which you can find in the structure), |
||
17 | using system function 75, 6. |
||
18 | - returns 0 on error, identifier otherwise |
||
19 | |||
20 | |||
21 | identifier = identifier which one of the previous functions returned |
||
22 | This procedure will handle all incoming data for a connection and place it in the buffer. |
||
23 | As long as the procedure expects more data, -1 is returned and the procedure must be called again. |
||
24 | - When transfer is done, the procedure will return 0. |
||
25 | |||
26 | |||
27 | This structure is defined in http.inc (and not copied here because it might still change.) |
||
28 | The identifier used by the functions is actually a pointer to this structure. |
||
29 | In the dword named .flags, the library will set various bit-flags indicating the status of the process. |
||
30 | (When a transfer is done, one should check these bit-flags to find out if the transfer was error-free.) |
||
31 | All received data is placed at the end of this structure, including HTTP headers. |
||
32 | The dword .status contains the status code received from the server (e.g. 200 for OK). |
||
33 | In header_length you'll find the length of the header as soon as it has been received. |
||
34 | In content_length you'll find the length of the content (not counting headers). |
||
35 | In content_received, you'll find the number of bytes already received (not counting headers). |
||
36 |