# Making HTTP Requests

## Fetch

The [`HTTP Fetch`](https://docs.midio.com/midio-docs/built-in-nodes/http#fetchurl) function can be used to fetch data from a url. Make sure to pick either **text**, **buffer** or **json** for the `response type` input. The `headers`, `method`, and `body` inputs are optional. Use a data object if you want to pass any headers to the request. The `method`  input will default to "GET".

<figure><img src="https://1896308808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdFpuRAnTVYgmlCXLLou%2Fuploads%2FKY7EPY233YEdDiXmos5J%2FMidio.png?alt=media&#x26;token=d5db6df3-e6a1-4911-ac84-9b2a24bfb87d" alt="" width="563"><figcaption></figcaption></figure>

## Fetching images

Images can be retrieved by first fetching and selecting **buffer** for the **`response type`.** The buffer can then be converted to an image using [`Image From Buffer`](https://docs.midio.com/midio-docs/built-in-nodes/core-std#frombuffer-image).

<figure><img src="https://1896308808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRdFpuRAnTVYgmlCXLLou%2Fuploads%2F9OMuE68dRS8KaYacQPsV%2FMidio.png?alt=media&#x26;token=7ba2f689-e951-49e1-8763-b194903f56ee" alt=""><figcaption></figcaption></figure>
