HTTPCLass Module

This module is for HTTP connections. It just calls CURL.


Uses


Derived Types

type, public ::  http_

A class for creating HTTP connection.

Components

Type Visibility Attributes Name Initial
character(len=1000), public :: body = "Hello!"
character(len=1000), public :: token = "your_access_token"
character(len=100), public :: channel = "your_channel"
character(len=1000), public :: url = "url"

Type-Bound Procedures

procedure, public :: post => posthttp ../../../

HTTP POST

procedure, public :: get => gethttp ../../../

HTTP GET


Subroutines

public subroutine posthttp(obj)

Arguments

Type IntentOptional Attributes Name
class(http_), intent(in) :: obj

public subroutine gethttp(obj)

Arguments

Type IntentOptional Attributes Name
class(http_), intent(in) :: obj