OpenVAS Scanner 23.32.3
nasl_http.h File Reference
#include "nasl_lex_ctxt.h"
Include dependency graph for nasl_http.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

tree_cellhttp_open_socket (lex_ctxt *)
tree_cellhttp_close_socket (lex_ctxt *)
tree_cellhttp_get (lex_ctxt *)
tree_cellhttp_head (lex_ctxt *)
tree_cellhttp_post (lex_ctxt *)
tree_cellhttp_delete (lex_ctxt *)
tree_cellhttp_put (lex_ctxt *)
tree_cellnasl_http_recv_headers (lex_ctxt *)
tree_cellcgibin (lex_ctxt *)
tree_cellnasl_is_cgi_installed (lex_ctxt *)
tree_cellnasl_http_keepalive_send_recv (lex_ctxt *)
tree_cellnasl_http_share_exists (lex_ctxt *)

Function Documentation

◆ cgibin()

tree_cell * cgibin ( lex_ctxt * lexic)

Definition at line 229 of file nasl_http.c.

230{
231 const char *path = prefs_get ("cgi_path");
232 tree_cell *retc;
233
234 (void) lexic;
235 if (path == NULL)
236 path = "/cgi-bin:/scripts";
238 retc->x.str_val = g_strdup (path);
239 retc->size = strlen (path);
240
241 return retc;
242}
tree_cell * alloc_typed_cell(int typ)
Definition nasl_tree.c:25
@ CONST_DATA
Definition nasl_tree.h:82
struct TC tree_cell
int size
Definition nasl_tree.h:99
union TC::@332262321161220155002104006201360276211317150140 x
char * str_val
Definition nasl_tree.h:103

References alloc_typed_cell(), CONST_DATA, TC::size, TC::str_val, and TC::x.

Here is the call graph for this function:

◆ http_close_socket()

tree_cell * http_close_socket ( lex_ctxt * lexic)

Definition at line 41 of file nasl_http.c.

42{
43 return nasl_close_socket (lexic);
44}
tree_cell * nasl_close_socket(lex_ctxt *lexic)

References nasl_close_socket().

Here is the call graph for this function:

◆ http_delete()

tree_cell * http_delete ( lex_ctxt * lexic)

Definition at line 212 of file nasl_http.c.

213{
214 return _http_req (lexic, "DELETE");
215}
static tree_cell * _http_req(lex_ctxt *lexic, char *keyword)
Definition nasl_http.c:63

References _http_req().

Here is the call graph for this function:

◆ http_get()

tree_cell * http_get ( lex_ctxt * lexic)

Definition at line 181 of file nasl_http.c.

182{
183 return _http_req (lexic, "GET");
184}

References _http_req().

Referenced by plugin_do_run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ http_head()

tree_cell * http_head ( lex_ctxt * lexic)

Definition at line 193 of file nasl_http.c.

194{
195 return _http_req (lexic, "HEAD");
196}

References _http_req().

Here is the call graph for this function:

◆ http_open_socket()

tree_cell * http_open_socket ( lex_ctxt * lexic)

Definition at line 35 of file nasl_http.c.

36{
37 return nasl_open_sock_tcp_bufsz (lexic, 65536);
38}
tree_cell * nasl_open_sock_tcp_bufsz(lex_ctxt *lexic, int bufsz)

References nasl_open_sock_tcp_bufsz().

Here is the call graph for this function:

◆ http_post()

tree_cell * http_post ( lex_ctxt * lexic)

Definition at line 203 of file nasl_http.c.

204{
205 return _http_req (lexic, "POST");
206}

References _http_req().

Here is the call graph for this function:

◆ http_put()

tree_cell * http_put ( lex_ctxt * lexic)

Definition at line 221 of file nasl_http.c.

222{
223 return _http_req (lexic, "PUT");
224}

References _http_req().

Here is the call graph for this function:

◆ nasl_http_keepalive_send_recv()

tree_cell * nasl_http_keepalive_send_recv ( lex_ctxt * )

◆ nasl_http_recv_headers()

tree_cell * nasl_http_recv_headers ( lex_ctxt * )

◆ nasl_http_share_exists()

tree_cell * nasl_http_share_exists ( lex_ctxt * )

◆ nasl_is_cgi_installed()

tree_cell * nasl_is_cgi_installed ( lex_ctxt * )