Procedures

ProcedureLocationProcedure TypeDescription
append_pairhttp_pairSubroutine

Appends a new pair_type instance with the provided name and value into the given pair_type array(i.e pair).

Read more…
client_get_responsehttp_clientFunction

This function sends an HTTP request to a server using the fortran-curl package and stores the server's response in a response_type object.

Read more…
client_header_callbackhttp_clientFunction

This function is a callback function used by the fortran-curl package to handle HTTP headers.

Read more…
client_response_callbackhttp_clientFunction

This function is a callback function used by the fortran-curl package to handle HTTP responses. It is called for each chunk of data received from the server and appends the data to a response_type object.

Read more…
client_typehttp_clientInterface

Interface for new_client function.

Read more…
get_pair_valuehttp_pairFunction

The function retrieves the value associated with a specified name from the passed array of pair_type objects (i.e., pair_arr). The search for the name is case-insensitive. If the name is not found, the function returns an unallocated string. In the case of duplicate name entries in the pair_arr, the function returns the value of the first occurrence of the name.

Read more…
header_valuehttp_responseFunction

This function is used to retrieve the value of a response header. It takes the response header name as input and returns the corresponding header value.

Read more…
new_clienthttp_clientFunction

This is the constructor for the client_type derived type.

Read more…
new_requesthttp_clientFunction

This function create a request_type object and populates it. The function returns the response_type object containing the server's response.

Read more…
pair_has_namehttp_pairFunction

Return .true. if there exists a pair_type object inside pair_arr with a name attribute equal to the provided name; otherwise, return .false.. HTTP pairs are case-insensitive, implying that values are converted to lowercase before the comparison is performed.

Read more…
prepare_form_encoded_strhttp_clientFunction

This subroutine converts the request%form into a URL-encoded name-value string and returns it.

Read more…
prepare_request_header_ptrhttp_clientSubroutine

This subroutine prepares headers in required format(Linked list) for an HTTP request.

Read more…
requesthttp_clientInterface

Interface for new_request function.

Read more…
set_authhttp_clientFunction

Set the user name and password for Authentication.

Read more…
set_bodyhttp_clientFunction

The function sets the request body.

Read more…
set_methodhttp_clientFunction

This function sets the HTTP method for the request.

Read more…
set_postfieldshttp_clientFunction

Set the data to be sent in the HTTP POST request body.

Read more…
set_timeouthttp_clientFunction

This function sets the timeout value (in seconds).

Read more…