/tags/http
- Node.js get IP Address
How to get IP address in Node.js Getting a user's IP address seems pretty straightforward in Node.js, right? Does it need a special page on this website? Yes it does, we'll find out why in a few seco...
- Using Node.js to download files
How to download files using Node.js There are three approaches to writing a file downloader using Node: Using HTTP.get Using curl Using wget I have created functions for all of them. To get the examp...
- Express.js: Custom 404 and 500 error pages
How to create custom Express.js error pages Express does a good job of handling 404 and 500 errors by default. However, many a times, the error is page is now what we would like it to look like. Is t...
- The dangers of trusting HTTP headers
HTTP headers can be set by users and they can be very dangerous if you are using their values anywhere in the application logic, or are writing or storing (and eventually writing) their values anywh...