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.Type | Intent | Optional | 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. |