Rev 5534 | Rev 5598 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5534 | Rev 5576 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //HTTP library |
1 | //HTTP library |
Line 2... | Line 2... | ||
2 | 2 | ||
3 | dword libHTTP = #alibHTTP; |
3 | dword libHTTP = #alibHTTP; |
Line 4... | Line 4... | ||
4 | char alibHTTP[23] = "/sys/lib/http.obj\0"; |
4 | char alibHTTP[23] = "/sys/lib/http.obj\0"; |
5 | 5 | ||
6 | dword http_lib_init = #aLib_init; |
6 | dword http_lib_init = #aLib_init; |
7 | dword http_get = #aHTTPget; |
7 | dword http_get = #aHTTPget; |
8 | dword http_head = #aHTTPhead; |
8 | dword http_head = #aHTTPhead; |
9 | dword http_post = #aHTTPpost; |
9 | dword http_post = #aHTTPpost; |
10 | dword http_find_header_field = #aFHF; |
10 | dword http_find_header_field = #aFHF; |
11 | dword http_send = #aHTTPsend; |
11 | dword http_send = #aHTTPsend; |
12 | dword http_receive = #aHTTPreceive; |
12 | dword http_receive = #aHTTPreceive; |
13 | dword http_disconnect = #aHTTPdisconnect; |
13 | dword http_disconnect = #aHTTPdisconnect; |
14 | dword http_free = #aHTTPfree; |
14 | dword http_free = #aHTTPfree; |
15 | dword uri_escape = #aURIescape; |
15 | dword uri_escape = #aURIescape; |
Line 16... | Line 16... | ||
16 | dword uri_unescape = #aURIunescape; |
16 | dword uri_unescape = #aURIunescape; |
17 | $DD 2 dup 0 |
17 | $DD 2 dup 0 |
18 | 18 | ||
Line 58... | Line 58... | ||
58 | dword header_length; |
58 | dword header_length; |
59 | dword content_ptr; |
59 | dword content_ptr; |
60 | dword content_length; |
60 | dword content_length; |
61 | dword content_received; |
61 | dword content_received; |
62 | char http_header; |
62 | char http_header; |
63 | };><>><>><>><>><>><>><>><>><>><>><>><>><> |
- | |
64 | 63 | }; |
|
- | 64 | ||
- | 65 | :dword file_get_contents(dword url,...) |
|
- | 66 | { |
|
- | 67 | http_get(url,FLAG_HTTP11,""); |
|
- | 68 | }><>><>><>><>><>><>><>><>><>><>><>><>><> |
|
- | 69 | ||
65 | 70 |