back to io 

wxURL

generated from ../src/mod_io/url.cpp

Parses URLs.

Constants

wxURLError

Name Description
NOERR No error.
SNTXERR Syntax error in the URL string.
NOPROTO Found no protocol which can get this URL.
NOHOST An host name is required for this protocol.
NOPATH A path is required for this protocol.
CONNERR Connection error.
PROTOERR An error occurred during negotiation.

wxURLError is ported to JavaScript as a separate class. Note that this class doesn't exist in wxWidgets.

Class Methods

setDefaultProxy

setDefaultProxy(proxy)
 
Name Type Default Description
proxy String

Sets the default proxy server to use to get the URL. The string specifies the proxy like this: <hostname>:<port number>.

Constructor

wxURL

wxURL(Url)
 
Name Type Default Description
Url String

Constructs a URL object from the string. The URL must be valid according to RFC 1738. In particular, file URLs must be of the format 'file://hostname/path/to/file'. It is valid to leave out the hostname but slashes must remain in place-- i.e. a file URL without a hostname must contain three consecutive slashes.

Properties

Name Type Description
error read only Integer Returns the last occurred error. See wxURLError.
inputStream read only wxInputStream Creates a new input stream on the specified URL. You can use all but seek functionality of a stream. Seek isn't available on all streams. For example, http or ftp streams doesn't deal with it.

Methods

setProxy

setProxy(proxy)
 
Name Type Default Description
proxy String

Sets the proxy to use for this URL.



SourceForge.net Logo Support This Project

Table of Contents

Prototype

wxURI

Class Methods

setDefaultProxy

Constructor

wxURL

Properties

error
inputStream

Methods

setProxy


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.