2
* Copyright (C) 2014 Cisco and/or its affiliates. All rights reserved.
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
#if !defined(_LIBCLAMAV_WWW_H)
22
#define _LIBCLAMAV_WWW_H
24
int connect_host(const char *host, const char *port, uint32_t timeout, int useAsync);
25
size_t encoded_size(const char *postdata);
26
char *encode_data(const char *postdata);
27
void submit_post(const char *host, const char *port, const char *method, const char *url, const char *postdata, uint32_t timeout);