Rev 7676 | Rev 8185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7676 | Rev 8177 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | /* This is a small program used simply to fetch web pages. |
18 | /* This is a small program used simply to fetch web pages. |
19 | * No fancy functionalities such as link redirection or site sucking is |
19 | * No fancy functionalities such as link redirection or site sucking is |
20 | * present. |
20 | * present. |
21 | * Page fetched can only be sent to stdout. */ |
21 | * Page fetched can only be sent to stdout. */ |
22 | 22 | ||
23 | #include "../wims.h" |
- | |
24 | #include <netdb.h> |
23 | #include <netdb.h> |
25 | #include <sys/socket.h> |
24 | #include <sys/socket.h> |
26 | #include <netinet/in.h> |
25 | #include <netinet/in.h> |
27 | 26 | ||
- | 27 | #include "../wims.h" |
|
28 | char *cheater1="User-Agent: WIMS-webget"; |
28 | char *cheater1="User-Agent: WIMS-webget"; |
29 | char *cheater2="Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*\r\n\ |
29 | char *cheater2="Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*\r\n\ |
30 | Accept-Encoding: gzip\r\n\ |
30 | Accept-Encoding: gzip\r\n\ |
31 | Accept-Language: en, fr, it, de, es\r\n\ |
31 | Accept-Language: en, fr, it, de, es\r\n\ |
32 | Accept-Charset: iso-8859-1,*,utf-8"; |
32 | Accept-Charset: iso-8859-1,*,utf-8"; |