node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

http-one-oh-no

http-one-oh-no

Make HTTP 1.0 requests

Synopsis

Do you want to make an HTTP request using Node? Then this package is not what you are looking for. 99.9% of the time you want to be making HTTP 1.1 requests, not HTTP 1.0 requests like this package makes. The built in http module or the request npm package is what you actually want.

But Then Why HTTP 1.0!?

Because your server will get HTTP 1.0 requests without a Host header, and you should test that. Maybe there are other reasons.

Caveats

No support for HTTPS. Only aiming to be close to http.request() and http.get(). This was all done hastily on a Sunday.

Installation

npm install http-one-oh-no

Usage

Usage is the same as the http.request and http.get functions.