3

How do I make a HTTP/1.0 request with HTTPoison? I don't know which version it's using, but I'm assuming it's not 1.0 by default.

I am integrating with some accounting software called MoneyWorks, and they recommend using HTTP/1.0 if possible to avoid a 2 second timeout delay.

I don't see anything in the HTTPoison docs for this so I went to the Hackney docs since it's built on that. Didn't see anything there either.

Peter Brown
  • 50,956
  • 18
  • 113
  • 146

1 Answers1

2

In this case I would use ibrowse, which - as Github documentation states - supports HTTP 1.0. Maybe better idea is start with Httpotion, which is built on the ibrowse.

As you wrote, there is no info about supporting this version for Hackney (which means is also unknown for Httpoison).

PatNowak
  • 5,721
  • 1
  • 25
  • 31
  • This might work, thanks!. It looks like Httpotion lets you specify ibrowse options, and there's an ibrowse option for "http_vsn" so I'm assuming I can specify it there. – Peter Brown Apr 04 '17 at 18:27