ELinks 0.18.0
proxy.c File Reference
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "config/options.h"
#include "main/event.h"
#include "network/connection.h"
#include "network/state.h"
#include "protocol/protocol.h"
#include "protocol/proxy.h"
#include "protocol/uri.h"
#include "util/memory.h"
#include "util/string.h"
Include dependency graph for proxy.c:

Macros

#define _GNU_SOURCE   /* XXX: we _WANT_ strcasestr() ! */

Functions

static int proxy_probe_no_proxy (char *url, char *no_proxy)
static struct uriproxy_uri (struct uri *uri, char *proxy, struct connection_state *error_state)
static char * strip_proxy_protocol (char *proxy, const char *strip1, const char *strip2)
static char * get_protocol_proxy (const char *opt, const char *env1, const char *env2, const char *strip1, const char *strip2)
static struct uriget_proxy_worker (struct uri *uri, char *proxy, struct connection_state *error_state)
struct uriget_proxy_uri (struct uri *uri, struct connection_state *error_state)
struct uriget_proxied_uri (struct uri *uri)

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE   /* XXX: we _WANT_ strcasestr() ! */

Function Documentation

◆ get_protocol_proxy()

char * get_protocol_proxy ( const char * opt,
const char * env1,
const char * env2,
const char * strip1,
const char * strip2 )
static

◆ get_proxied_uri()

struct uri * get_proxied_uri ( struct uri * uri)

◆ get_proxy_uri()

struct uri * get_proxy_uri ( struct uri * uri,
struct connection_state * error_state )

◆ get_proxy_worker()

struct uri * get_proxy_worker ( struct uri * uri,
char * proxy,
struct connection_state * error_state )
static

◆ proxy_probe_no_proxy()

int proxy_probe_no_proxy ( char * url,
char * no_proxy )
static

◆ proxy_uri()

struct uri * proxy_uri ( struct uri * uri,
char * proxy,
struct connection_state * error_state )
static

◆ strip_proxy_protocol()

char * strip_proxy_protocol ( char * proxy,
const char * strip1,
const char * strip2 )
static