#include "../include/billigertelefonieren.h"

Functions | |
| int | httpInitialise (struct sockaddr_in *serveraddr, int purpose) | 
| initialise http transfer   | |
| int | httpRequest (struct sockaddr_in *serveraddr, int function, char *url, char *contents, char *bigbuffer) | 
| download a page   | |
contains functions for HTTP connections. (c) 2005-2007 Markus Drescher last change: 03.03.07
---------------------------------------------------------------------------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ----------------------------------------------------------------------------
| int httpInitialise | ( | struct sockaddr_in * | serveraddr, | |
| int | purpose | |||
| ) | 
initialise http transfer
httpInitialise
| *serveraddr | server address | |
| purpose | BT_GETRATES or FB_STOREPREFIXES | 
| int httpRequest | ( | struct sockaddr_in * | serveraddr, | |
| int | function, | |||
| char * | url, | |||
| char * | contents, | |||
| char * | bigbuffer | |||
| ) | 
download a page
httpRequest
| serveraddr | pointer to the server address | |
| function | what should we do? | |
| url | url to download, only needed for BT_GETRATES | |
| contents | contents to post, only needed for FB_STOREPREFIXES | |
| bigbuffer | result |