Go to the source code of this file.
Data Structures | |
| struct | prod_cons_t |
| Structure between the engine and the libhttp_thread modules. More... | |
| struct | prod_cons_t::http_batton_t |
| other fields that may be moved to a void* More... | |
| struct | range_t |
| Structure defining a byte range used by HTTP Range field. More... | |
| struct | cookielist_t |
| Structure defining list storing the cookies obtained since now. More... | |
Functions | |
| prod_cons_t * | new_prodcons () |
| allocates the structure | |
| void | delete_prodcons (struct prod_cons_t *p) |
| deletes the structure | |
| void | set_useragent (const char *ua) |
| Set the User Agent to be used for HTTP request. | |
| void | set_proxyaddr (const char *addr) |
| Set the proxy address to be used for HTTP request. | |
| void | set_proxyauth (const char *pa) |
| Set username and password to authenticate with a proxy server. | |
| char * | buildreqheader (const char *host, const char *useragent, const char *referrer, const char *proxyauth, struct cookielist_t *cl, range_t range, char **reqheaderp) |
| Build a Request-Header using the parameter passed as argument. | |
| char * | httpget (const char *server, const char *file, const char *reqheader, struct prod_cons_t *pc, char **headerp, char **bodyp) |
| Perform an HTTP GET request to the specified server. | |
| cookielist_t * | addcookies (const char *header, struct cookielist_t *cl) |
| Add all the cookies received to a list. | |
| char * | getpage (const char *host, const char *fileformat, char **refp, int updateref, struct cookielist_t **clp,...) |
| Performs a download of a web page like a browser would do. | |
| char * | getpage_hidepassw (const char *host, const char *fileformat, char **refp, int updateref, struct cookielist_t **clp,...) |
| Retrieve a web page hiding the password from the log. | |
| char * | getpage_range (const char *host, const char *fileformat, range_t range, char **refp, int updateref, struct cookielist_t **clp,...) |
| Retrieve only a part of a web page. | |
| int | httpget_thread (const char *file, const char *reqheader, char **headerp, struct prod_cons_t *p) |
| passing le baton, plus support ot trucate connesstion setting p->stop flag | |
| void * | getpage_thread (void *x) |
| use this with pthread_create, x is a struct prod_cons_t * | |
>Definition in file libhttp.h.
|
||||||||||||
|
Add all the cookies received to a list.
|
|
||||||||||||||||||||||||||||||||
|
Build a Request-Header using the parameter passed as argument. The needed memory to store all the headers is automatically allocated. Use NULL to avoid the use of optional fields.
|
|
|
deletes the structure
|
|
||||||||||||||||||||||||||||
|
Performs a download of a web page like a browser would do. Retrieve a web page from the server specified. It allow to specify the UserAgent, the cookies the Referer field for that page. For the file name of the web page, it accept a string format like printf does followed by the necessary arguments.
|
|
||||||||||||||||||||||||||||
|
Retrieve a web page hiding the password from the log.
|
|
||||||||||||||||||||||||||||||||
|
Retrieve only a part of a web page.
|
|
|
use this with pthread_create, x is a struct prod_cons_t *
|
|
||||||||||||||||||||||||||||
|
Perform an HTTP GET request to the specified server. Perform an HTTP GET request for the specified file using all the Request-Header passed as argument. The function will read the response from the server and will allocate the necessary memory to store it, then the message body will be separed from the trailing headers and both will be returned using the pointers passed as argument.
|
|
||||||||||||||||||||
|
passing le baton, plus support ot trucate connesstion setting p->stop flag
|
|
|
allocates the structure
|
|
|
Set the proxy address to be used for HTTP request.
|
|
|
Set username and password to authenticate with a proxy server.
|
|
|
Set the User Agent to be used for HTTP request.
|
1.3.6-20040222