#include <url.h>
Inheritance diagram for URLStream::
Public Methods | |
URLStream () | |
Construct an instance of URL stream. More... | |
URLStream & | getline (char *buffer, size_t len) |
Line parsing with conversion. More... | |
urlerror_t | Get (const char *path, int buffer=512) |
Get URL data from a named stream of a known buffer size. More... | |
urlerror_t | Submit (const char *path, const char **vars, int buffer=512) |
Submit URL with vars passed as argument array. More... | |
urlerror_t | Post (const char *path, const char **vars, int buffer=512) |
Post URL vars with post method. More... | |
urlerror_t | Head (const char *path, int buffer=512) |
Used to fetch header information for a resource. More... | |
void | Close () |
Close the URL stream for a new connection. More... | |
void | setReferer (const char *str) |
Set the referer url. More... | |
void | setCookie (const char *str) |
Set the cookie to pass. More... | |
void | setUser (const char *str) |
Set user id for the url. More... | |
void | setPassword (const char *str) |
Set password for the url. More... | |
void | setAuthentication (urlauth_t a, const char *str=NULL) |
Set authentication type for the url. More... | |
void | setPragma (const char *str) |
Set the pragmas. More... | |
void | setProxy (const char *host, tpport_t port) |
Set the proxy server used. More... | |
void | setAgent (const char *str) |
Set the agent. More... | |
urlmethod_t | getMethod (void) |
Get url method (and protocol) employed. More... | |
void | setTimeout (timeout_t to) |
Set socket timeout characteristics for processing URL requests. More... | |
void | setFollow (bool enable) |
Specify url following. More... | |
void | setProtocol (urlprotocol_t pro) |
Specify http protocol level being used. More... | |
Protected Methods | |
urlerror_t | sendHTTPHeader (const char *path, const char **vars, int bufsize) |
int | underflow (void) |
virtual void | httpHeader (const char *header, const char *value) |
Derived method to receive and parse http "headers". More... |
|
Construct an instance of URL stream.
|
|
Close the URL stream for a new connection.
|
|
Get URL data from a named stream of a known buffer size.
|
|
Used to fetch header information for a resource.
|
|
Post URL vars with post method.
|
|
Submit URL with vars passed as argument array. This submit assumes "GET" method. Use "Post" member to perform post.
|
|
Get url method (and protocol) employed.
|
|
Line parsing with conversion.
|
|
Derived method to receive and parse http "headers".
|
|
|
|
Set the agent.
|
|
Set authentication type for the url.
|
|
Set the cookie to pass.
|
|
Specify url following. Set to false to disable following of relocation requests.
|
|
Set password for the url.
|
|
Set the pragmas.
|
|
Specify http protocol level being used.
|
|
Set the proxy server used.
|
|
Set the referer url.
|
|
Set socket timeout characteristics for processing URL requests. Set to 0 for no default timeouts.
Reimplemented from TCPStream. |
|
Set user id for the url.
|
|
Reimplemented from TCPStream. |