Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | SOCKET_HTTP_MAX_HEADER_LENGTH 0x2000 |
#define | SOCKET_HTTP_MAX_REDIRECTS 5 |
Functions | |
static size_t | socket_slurp (RzSocket *s, RzBuffer *buf) |
static char * | socket_http_get_recursive (const char *url, int *code, int *rlen, ut32 redirections) |
static char * | socket_http_answer (RzSocket *s, int *code, int *rlen, ut32 redirections) |
RZ_API char * | rz_socket_http_get (const char *url, int *code, int *rlen) |
RZ_API char * | rz_socket_http_post (const char *url, const char *data, int *code, int *rlen) |
#define SOCKET_HTTP_MAX_HEADER_LENGTH 0x2000 |
Definition at line 11 of file socket_http.c.
#define SOCKET_HTTP_MAX_REDIRECTS 5 |
Definition at line 12 of file socket_http.c.
Definition at line 287 of file socket_http.c.
References socket_http_get_recursive(), SOCKET_HTTP_MAX_REDIRECTS, and setup::url.
Referenced by __open(), __read(), __rtr_shell(), __system(), __write(), download_and_write(), rtrcmd(), rz_core_rtr_add(), rz_core_rtr_cmd(), and rz_core_rtr_http_run().
Definition at line 291 of file socket_http.c.
References eprintf, free(), NULL, path, printf(), rz_socket_connect_tcp, rz_socket_new(), rz_socket_printf(), rz_socket_write(), rz_str_startswith(), RZ_VERSION, s, socket_http_answer(), strdup(), and setup::url.
Definition at line 34 of file socket_http.c.
References b, delta, eprintf, test-lz4-list::exit, free(), len, malloc(), memcpy(), NULL, p, rz_buf_free(), rz_buf_new_with_bytes(), rz_buf_read_at(), rz_return_val_if_fail, rz_socket_close(), rz_socket_read_block(), rz_str_casestr(), rz_str_ndup(), rz_str_trim(), s, socket_http_get_recursive(), socket_slurp(), strdup(), and setup::url.
Referenced by rz_socket_http_post(), and socket_http_get_recursive().
|
static |
Definition at line 191 of file socket_http.c.
References command, eprintf, free(), len, NULL, path, rz_socket_connect_tcp, rz_socket_free(), rz_socket_new(), rz_socket_printf(), rz_str_escape_sh(), RZ_STR_ISEMPTY, rz_str_newf(), rz_str_startswith(), rz_sys_cmd_str(), rz_sys_getenv(), RZ_VERSION, s, socket_http_answer(), strdup(), and setup::url.
Referenced by rz_socket_http_get(), and socket_http_answer().
Definition at line 14 of file socket_http.c.
References c, i, rz_buf_append_bytes(), rz_socket_block_time(), rz_socket_read_block(), rz_socket_ready(), s, and SOCKET_HTTP_MAX_HEADER_LENGTH.
Referenced by socket_http_answer().