And now, here I am, understanding it completely different than @idi527 and @Qqwy did…
For me, it seems as if you want to a webserver that actually receives the curl request.
In this case, take a look at phoenix and/or plug.