public class UrlModule extends AbstractQuercusModule
Modifier and Type | Field and Description |
---|---|
static int |
PHP_URL_FRAGMENT |
static int |
PHP_URL_HOST |
static int |
PHP_URL_PASS |
static int |
PHP_URL_PATH |
static int |
PHP_URL_PORT |
static int |
PHP_URL_QUERY |
static int |
PHP_URL_SCHEME |
static int |
PHP_URL_USER |
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
UrlModule() |
Modifier and Type | Method and Description |
---|---|
static Value |
base64_decode(Env env,
StringValue str,
boolean isStrict)
Decodes base64
|
static java.lang.String |
base64_encode(StringValue s)
Encodes base64
|
static Value |
get_headers(Env env,
java.lang.String urlString,
Value format)
Connects to the given URL using a HEAD request to retreive
the headers sent in the response.
|
static Value |
get_meta_tags(Env env,
StringValue filename,
boolean useIncludePath)
Extracts the meta tags from a file and returns them as an array.
|
static Value |
http_build_query(Env env,
Value formdata,
StringValue numeric_prefix,
StringValue separator) |
static Value |
parse_url(Env env,
StringValue str,
int component)
Parses the URL into an array.
|
static java.lang.String |
rawurldecode(java.lang.String s)
Returns the decoded string.
|
static java.lang.String |
rawurlencode(java.lang.String str)
Encodes the url
|
static java.lang.String |
urldecode(java.lang.String s)
Returns the decoded string.
|
static StringValue |
urlencode(StringValue str)
Gets the magic quotes value.
|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
public static final int PHP_URL_SCHEME
public static final int PHP_URL_HOST
public static final int PHP_URL_PORT
public static final int PHP_URL_USER
public static final int PHP_URL_PASS
public static final int PHP_URL_PATH
public static final int PHP_URL_QUERY
public static final int PHP_URL_FRAGMENT
public static java.lang.String base64_encode(StringValue s)
public static Value base64_decode(Env env, StringValue str, boolean isStrict)
public static Value get_headers(Env env, java.lang.String urlString, Value format)
public static Value get_meta_tags(Env env, StringValue filename, boolean useIncludePath)
public static Value http_build_query(Env env, Value formdata, StringValue numeric_prefix, StringValue separator)
public static Value parse_url(Env env, StringValue str, int component)
public static java.lang.String rawurldecode(java.lang.String s)
public static java.lang.String rawurlencode(java.lang.String str)
public static StringValue urlencode(StringValue str)
public static java.lang.String urldecode(java.lang.String s)