src/http-get.c File Reference

HTTP GET/POST functions for retrieving data. More...

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

Include dependency graph for http-get.c:


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

Detailed Description

HTTP GET/POST functions for retrieving data.

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. ----------------------------------------------------------------------------


Function Documentation

int httpInitialise ( struct sockaddr_in *  serveraddr,
int  purpose 
)

initialise http transfer

httpInitialise

Parameters:
*serveraddr server address
purpose BT_GETRATES or FB_STOREPREFIXES
Returns:
0 for success, -1 on error

int httpRequest ( struct sockaddr_in *  serveraddr,
int  function,
char *  url,
char *  contents,
char *  bigbuffer 
)

download a page

httpRequest

Parameters:
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
Returns:
0 for success, -1 on error

SourceForge.net Logo