#include <vul_url.h>
Currently supports file and HTTP only. HTTP support includes basic authentication, using the normal HTTP URL scheme, e.g. http://user4:mypassword@webserverthingy.org/file.txt
Definition at line 25 of file vul_url.h.
Static Public Member Functions | |
| static vcl_istream * | open (const char *url, vcl_ios_openmode mode=vcl_ios_in) |
| open a URL. | |
| static bool | exists (const char *url) |
| Does that URL exist. | |
| static bool | is_url (const char *url) |
| Is that a URL. | |
| static bool | is_file (const char *url) |
| Is that a file. | |
| static vcl_string | encode_base64 (const vcl_string &in) |
| Encode a string of chars into base64 format. | |
| static vcl_string | decode_base64 (const vcl_string &in) |
| Decode a string of chars from base64 format. | |
|
|
Decode a string of chars from base64 format.
Definition at line 649 of file vul_url.cxx. |
|
|
Encode a string of chars into base64 format.
Definition at line 570 of file vul_url.cxx. |
|
|
Does that URL exist. If the URL does not begin with a recognised scheme identifier, the function will treat the parameter as a local filename Definition at line 469 of file vul_url.cxx. |
|
|
Is that a file. i.e. is it a downloadable URL, or a file on disk that isn't a directory. Definition at line 521 of file vul_url.cxx. |
|
|
Is that a URL. as opposed to an ordinary filename. Definition at line 497 of file vul_url.cxx. |
|
||||||||||||
|
open a URL. If URL is "file://..." open as a file with given mode. If URL is "http://..." open using vul_http_open If URL is "ftp://..." attempt ftp Otherwise assume it is a filename and open with given mode Definition at line 440 of file vul_url.cxx. |
1.4.4