4 * Copyright (C) 2000, 2001 Jeffrey Fulmer <jdfulmer@armstrong.com>
5 * This file is part of Siege
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
37 * HTTP request directive
50 PROTOCOL protocol; /* currently only http/https */
51 char *hostname; /* DNS entry or IP address */
52 int port; /* tcp port num, defs: 80, 443 */
53 char *pathname; /* path to http resource. */
54 DIRECTIVE calltype; /* request: GET/POST/HEAD etc. */
60 int protocol_length( char *url );
61 int is_supported( char* url );
62 int get_default_port( PROTOCOL p );
63 PROTOCOL get_protocol( const char *url );
64 void insert_childid( URL *U, int mypid );
65 char *process_post_data( char *datap );
66 URL build_url( char *url );
67 URL add_url( char *url );