/*
  $Id: io_http.h,v 1.5 2011/03/22 18:52:43 crc_canada Exp $

  FreeWRL support library.
  IO with HTTP.

*/

/****************************************************************************
    This file is part of the FreeWRL/FreeX3D Distribution.

    Copyright 2009 CRC Canada. (http://www.crc.gc.ca)

    FreeWRL/FreeX3D is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    FreeWRL/FreeX3D 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 FreeWRL/FreeX3D.  If not, see <http://www.gnu.org/licenses/>.
****************************************************************************/



#ifndef __LIBFREEWRL_IO_HTTP_H__
#define __LIBFREEWRL_IO_HTTP_H__


/* change method char* download_url(const char *url, const char *tmp); */
void download_url(resource_item_t *res);

void popInputResource();
void pushInputResource(resource_item_t *url);
resource_item_t *getInputResource();

/* URL manipulation */
bool checkNetworkFile(const char *fn);
#ifdef _MSC_VER
#define strncasecmp _strnicmp
#endif


#endif /* __LIBFREEWRL_IO_HTTP_H__ */
