Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

221
Views
Node.js: la solicitud POST no se ejecutará hasta el final del script

Estoy tratando de realizar múltiples solicitudes POST en mi código, sin embargo, la solicitud POST solo ocurrirá cuando finalice el script. Hasta ahora, cargué el siguiente código a través de una función e importé la función como un módulo sin éxito.

Soy relativamente nuevo en node.js, por lo que es posible que me esté perdiendo algo obvio aquí. ¿Alguien tiene alguna idea?

 var request = require('request'); var options = { 'method': 'POST', 'url': 'https://XXXXXXXXXX.com/Example', 'headers': { 'Authorization': 'Basic SuperSecretPassword', 'Content-Type': 'application/x-www-form-urlencoded' }, form: { 'To': Receiver, 'From': Sender, 'Parameters': '{"Flag":"1","Duration":"5"}' } }; request(options, function (error, response) { if (error) throw new Error(error); console.log(response.body); }); console.log(options);
about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!