Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7925 Boppan 1
#include 
2
#include 
3
#include 
4
 
5
int main() {
6
    con_set_title("Dynamicaly linked app");
7
    con_write_asciiz("Wait, I'll ask you... when I'll done to fetch one site");
8
    http_msg *h = get("http://boppan.org", 0, HTTP_FLAG_BLOCK, "");
9
    if (!receive(h)) {
10
    	con_printf("%s\n", h->content_ptr);
11
    } else {
12
        con_write_asciiz("Danmit! Can't access to the page.");
13
    }
14
    char buffer[256];
15
    InputBox(buffer, "Hay!", "How do you do?", "Everything sucks", 0, 256, 0);
16
    con_write_asciiz(buffer);
17
    con_exit(0);
18
    return 0;
19
}