edit-article
Home
Up
Delete
Article Name:
Article Description:
by Don Sagrott, founder @sospep.com - ]
Chapter ID/Name:
Status:
Write
Writing
Written
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">making http requests in nodejs</h1> <h2>[WHAT]</h2> <ol> <li>] making an http request is at the heart of any web app,</li> <li>] this article explores a number of different methods to make various http requests using the native node http module</li> <li>*] ALT = you can use a package like 'request' to facilitate the request making process</li> <li>*] the native node http request object STREAMS the data back to your request, so you have to handle the stream</li> </ol> <h2>[WHY]</h2> <ol> <li>] get data from website (html)</li> <li>] get json from third party api</li> <li>] put data</li> <li>] put json</li> </ol> <h2>[WHERE]</h2> <ol> <li>]</li> </ol> <h2>[WHEN]</h2> <ol> <li>]</li> </ol> <h2>[EXAMPLE]</h2> <ol> <li>]</li> </ol> <h2>[HOW-TO]</h2> <ol> <li>] you need to declare the dependancy in your app</li> </ol> <h2>[REFERENCE]</h2> <ol> <li>] <a href="/view/task?id=5228" target="_blank"># 5228 - CREATE-article# - 4565(this)</a> making http requests in node</li> <li>] # 4566 - making-http-requests-in-node-using-the-request-package</li> <li>?] TITLE = calling a third party api in nodejs using the 'request' package</li> </ol> <p> </p> <p> </p> <h1 style="text-align: center;"> </h1>