View Source CurlEx

Ultra-simple HTTP get. Shells out to curl. So it's a good idea to install it first.

Motivation

I got frustrated by Unknown CA errors from HTTPoison and Httpc. For example, when connecting to http://grad.tamu.edu. Meanwhile, curl works just fine.

Usage

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>"

Installation

def deps do
  [
    {:curl_ex, "~> 1.2.0"}
  ]
end