4 * Copyright (C) 2000, 2001, 2002 by
5 * Jeffrey Fulmer - <jdfulmer@armstrong.com>
6 * This file is distributed as part of Siege
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #endif /* HAVE_CONFIG_H */
34 # define portable_snprintf snprintf
35 # define portable_vsnprintf vsnprintf
45 typedef struct headers
49 unsigned long int length;
51 char redirection[128];
55 int myhttp( HTTPDATA *H );
58 * construct a HTTP GET request with "my"
59 * data and send it to the server host.
61 void JOEhttp_send( CONN *C, char *host, char *path );
64 * construct a HTTP POST request with "my"
65 * data and send it to server host.
67 void JOEhttp_post( CONN *C, char *host, char *path, char *data, size_t len );
73 HEADERS * JOEhttp_read_headers( CONN *C, char * );
79 ssize_t JOEhttp_read( CONN *C, int len );