Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8743813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:44:40+00:00 2026-06-13T11:44:40+00:00

What are the steps to send a https request in node js to a

  • 0

What are the steps to send a https request in node js to a rest service?
I have an api exposed like (Original link not working…)

How to pass the request and what are the options I need to give for this API like
host, port, path and method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T11:44:41+00:00Added an answer on June 13, 2026 at 11:44 am

    The builtin http and https modules are perfectly good if a bit low-level. You’ll probably want to use a module that handles the details for you and provides a nice higher-level API.

    In node v18, node itself exposes a global fetch(url) method, although as of 2023 it is still considered experimental and subject to change. Also, perhaps surprisingly, node’s builtin fetch() global does not use the HTTP stack provided by the traditional builtin http/https modules.
    Instead, it uses a parallel, from-scratch HTTP stack rewrite called undici.

    The builtin fetch() is convenient, but given the instability and that it’s still missing a few features, I’d avoid it in production use until the feature is more stable.

    There are several popular modules available on npm.

    • request used to be the very popular standard from the very early days of the node ecosystem, but it is no longer maintained, so you shouldn’t use it in new work.
    • axios is a very popular and actively maintained HTTP library.
    • node-fetch is another popular option that implements the fetch API.
    • There are hundreds of other options of varying popularity and quality; you might want to compare the available options to see what will meet your particular needs.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have own API at http(s)://www.api.domain.com (on HTTPS there is RapidSSL installed). If I
Hi I use jQuery typewatch plugin to send an ajax request when the user
This is my first steps with XML and I must send a XML by
I noticed that sometimes(randomly) my Mootools ajax request gets send twice. The second request
I want to send the JSON text {} to a web service and read
I have already used wininet to send some synchronous HTTP requests. Now, I want
how can i send JSON request from blackberry application that works as client to
Im using this Docu and Script to send an app request to some friends.
I'm working on a delphi api for Google docs and having a hard time
I want to use Google Shopping Search API for products search. I have followed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.