Erlang: HTTP Accept Header with Inets
Posted
by Ted Karmel
on Stack Overflow
See other posts from Stack Overflow
or by Ted Karmel
Published on 2010-06-08T16:47:46Z
Indexed on
2010/06/08
20:32 UTC
Read the original article
Hit count: 227
I am trying to do the equivalent of the following curl command :
curl -H "Accept: text/plain" http://127.0.0.1:8033/stats
I tried with an Inets simple http request. But, it isn't processed.
How can I specify in Inets (or some other Erlang http client for that matter) the accept header requirement?
© Stack Overflow or respective owner