dm_rpc_get Function

public function dm_rpc_get(request, response, url, accept, username, password, user_agent, modified_since, callback) result(rc)

Sends generic HTTP GET request to URL.

The function returns the following error codes:

  • E_EXIST if a pointer could not be deassociated (compiler bug).
  • E_RPC if the HTTP request failed.

Arguments

Type IntentOptional Attributes Name
type(rpc_request_type), intent(inout) :: request

RPC request type.

type(rpc_response_type), intent(inout) :: response

RPC response type.

character(len=*), intent(in), optional :: url

URL of RPC API (may include port).

character(len=*), intent(in), optional :: accept

HTTP Accept header.

character(len=*), intent(in), optional :: username

HTTP Basic Auth user name.

character(len=*), intent(in), optional :: password

HTTP Basic Auth password.

character(len=*), intent(in), optional :: user_agent

HTTP User Agent.

integer(kind=i8), intent(in), optional :: modified_since

Only fetch if modified since given time [Epoch].

procedure(dm_rpc_callback), optional :: callback

Callback function to pass to libcurl.

Return Value integer


Calls

proc~~dm_rpc_get~~CallsGraph proc~dm_rpc_get dm_rpc_get curl_easy_cleanup curl_easy_cleanup proc~dm_rpc_get->curl_easy_cleanup curl_easy_getinfo curl_easy_getinfo proc~dm_rpc_get->curl_easy_getinfo curl_easy_init curl_easy_init proc~dm_rpc_get->curl_easy_init curl_easy_perform curl_easy_perform proc~dm_rpc_get->curl_easy_perform curl_easy_setopt curl_easy_setopt proc~dm_rpc_get->curl_easy_setopt curl_slist_append curl_slist_append proc~dm_rpc_get->curl_slist_append curl_slist_free_all curl_slist_free_all proc~dm_rpc_get->curl_slist_free_all interface~dm_present dm_present proc~dm_rpc_get->interface~dm_present interface~dm_rpc_reset dm_rpc_reset proc~dm_rpc_get->interface~dm_rpc_reset proc~dm_f_c_logical dm_f_c_logical proc~dm_rpc_get->proc~dm_f_c_logical proc~dm_is_error dm_is_error proc~dm_rpc_get->proc~dm_is_error proc~dm_rpc_error dm_rpc_error proc~dm_rpc_get->proc~dm_rpc_error proc~dm_rpc_error_message dm_rpc_error_message proc~dm_rpc_get->proc~dm_rpc_error_message proc~dm_string_is_empty dm_string_is_empty proc~dm_rpc_get->proc~dm_string_is_empty proc~dm_z_type_to_encoding dm_z_type_to_encoding proc~dm_rpc_get->proc~dm_z_type_to_encoding curl_easy_strerror curl_easy_strerror proc~dm_rpc_error_message->curl_easy_strerror