ZOO-Project: ulinet.c File Reference
ZOO-Project
ulinet.c File Reference
#include "ulinet.h"
#include "server_internal.h"
#include <assert.h>
#include <ctype.h>

Macros

#define _ULINET
 
#define MAX_WAIT_MSECS   180*1000 /* Wait max. 180 seconds */
 

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png

Functions

size_t write_data_into (void *buffer, size_t size, size_t nmemb, void *data)
 Write the downloaded content to a _HINTERNET structure. More...
 
size_t write_data_into_file (void *buffer, size_t size, size_t nmemb, void *data)
 Write the downloaded content in the file pouted by the _HINTERNET structure. More...
 
size_t header_write_data (void *buffer, size_t size, size_t nmemb, void *data)
 In case of presence of "Set-Cookie" in the headers red, store the cookie identifier in cookie. More...
 
void setProxy (CURL *handle, char *host, long port)
 Define the proxy to use for a CURL handler. More...
 
int setProxiesForProtcol (CURL *handle, const char *proto)
 MACOSX. More...
 
HINTERNET InternetOpen (char *lpszAgent, int dwAccessType, char *lpszProxyName, char *lpszProxyBypass, int dwFlags)
 Create a HINTERNET. More...
 
char * getProvenance (maps *conf, const char *url)
 Verify if the URL should use a shared cache or not. More...
 
int AddMissingHeaderEntry (_HINTERNET *handle, const char *key, const char *value)
 Add missing headers to an existing _HINTERNET. More...
 
int isProtectedHost (const char *protectedHosts, const char *url)
 Verify if a host is protected (appear in [security] > hosts) More...
 
void AddHeaderEntries (HINTERNET *handle, maps *conf)
 Add headers defined in [security] > attributes to an existing HINTERNET. More...
 
void InternetCloseHandle (HINTERNET *handle0)
 Close a HINTERNET connection and free allocated resources. More...
 
HINTERNET InternetOpenUrl (HINTERNET *hInternet, LPCTSTR lpszUrl, LPCTSTR lpszHeaders, size_t dwHeadersLength, size_t dwFlags, size_t dwContext, const maps *conf)
 Create a new element in the download queue. More...
 
int processDownloads (HINTERNET *hInternet)
 Download all opened urls in the queue. More...
 
int freeCookieList (HINTERNET hInternet)
 Initialize the cookie for a specific index (hInternet.nb) More...
 
int InternetReadFile (_HINTERNET hInternet, LPVOID lpBuffer, int dwNumberOfBytesToRead, size_t *lpdwNumberOfBytesRead)
 Copy a downloaded content. More...