| verzia 1.4, 2001/10/30 17:24:02 |
verzia 1.5, 2001/11/12 16:08:00 |
|
|
| /* |
/* |
| * Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
* Author: Lubomir Host 'rajo' <host8@kepler.fmph.uniba.sk> |
| * $Log$ |
* $Log$ |
| |
* Revision 1.5 2001/11/12 16:08:00 host8 |
| |
* Big improvements in http. connect() doesn't work correctly yet. |
| |
* |
| * Revision 1.4 2001/10/30 17:24:02 host8 |
* Revision 1.4 2001/10/30 17:24:02 host8 |
| * New implementation of http request. |
* New implementation of http request. |
| * |
* |
| Riadok 29 typedef struct WWW_STRUCT { |
|
| Riadok 32 typedef struct WWW_STRUCT { |
|
| int method; |
int method; |
| char *host; |
char *host; |
| char *referer; |
char *referer; |
| char *cookies; |
char *cookie; |
| char *user_agent; |
char *user_agent; |
| } WWW; |
} WWW; |
| |
|
| extern WWW www; |
extern WWW www; |
| */ |
*/ |
| |
|
| |
typedef struct COOKIE_STRUCT { |
| |
char *domain; |
| |
char *text; |
| |
} COOKIE; |
| |
|
| typedef struct HTTP_REQUEST_STRUCT { |
typedef struct HTTP_REQUEST_STRUCT { |
| FILE *frw; |
FILE *frw; |
| int method; |
int method; |
| int port; |
u_short port; |
| char *ret_val; |
char *ret_val; |
| char *host; |
char *host; |
| char *file; |
char *file; |
| char *cookies; |
|
| } HTTP_REQUEST; |
} HTTP_REQUEST; |
| |
|
| extern HTTP_REQUEST **requests; |
extern HTTP_REQUEST **requests; |
| |
extern COOKIE **cookies; |
| |
|
| extern int http_request_by_request(HTTP_REQUEST *r); |
extern int http_request_by_request(HTTP_REQUEST *r); |
| extern int http_request(int method, char *file, char *host, char *fmt, ...); |
extern int http_request(int method, char *file, char *host, char *fmt, ...); |
| extern void http_init(void); |
extern void http_init(void); |
| |
extern void free_requests(HTTP_REQUEST **req); |
| |
|
| #endif /* #ifndef _HTTP_H */ |
#endif /* #ifndef _HTTP_H */ |
| |
|