Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@PrivateGER Well yeah, node has a "net" module for that, but still I have to make an http client using raw packets...
-
Root825405y@WIPocket Why are you writing an http client? Unless it's for fun, you have plenty of alternatives to choose from.
-
@Root I need to write it in nodejs and the default http module (that all other third party modules I found rely on) cant handle a response with no headers.
Related Rants
So I just spent 2 hours debugging a script that fetches data from an API. Thats all it was supposed to do. Http get some data.
It wasnt working and was giving a "parse error". Worked fine in browser.
So it turns out it was using http 0.9 (first documented http version, defined in 1991) and wasnt sending any headers. And js cant do no headers...
So yea I now have to write a tcp / http 0.9 client in js
rant
javascript
http
nodejs