View Source CurlEx (curl_ex v1.2.0)

A very simple Elixir wrapper for the curl command line tool. Currently supports only GET requests. Just make sure you have the curl command line tool installed on your system.

Examples

iex(1)> CurlEx.get!("https://google.com")
"<html>...</html>"

Currently, Microsoft Edge / Windows is the supported custom User Agent:

iex(2)> CurlEx.get_with_user_agent!("https://google.com", :microsoft_edge_windows)
"<html>...</html>"

Summary

Functions

Get the contents of a URL using curl.

Get the contents of a URL using curl with a custom User Agent.

Functions

@spec get!(binary()) :: binary()

Get the contents of a URL using curl.

Link to this function

get_with_user_agent!(url, atom)

View Source
@spec get_with_user_agent!(binary(), :microsoft_edge_windows) :: binary()

Get the contents of a URL using curl with a custom User Agent.