How does node initiate a post request?

this is url,
http://10.12.90.8/tjswjt/inde.
had better get a source code, I"m a little confused.

Mar.28,2021

import axios from 'axios';
axios.post('/xxx')
.then(res=>{
    ...
})

this is very simple when I was studying. If you don't like it, don't spray https://codeshelper.com/a/11..

const routers = router
    .post('/editNow', user.editNow)
module.exports = routers;

let user = {
    async editNow (ctx) {
        let data = ctx.request.body // 
        let update = `sql`
        try {
            let newData = await query(update); // query
            ctx.response.body = {
              status: 200,
              description: 'ok',
              result: newData.oid
            }
          } catch(err) {
                ctx.response.body = {
                    status: err
                }
          }
    }
}

use routing

router.use(user.routes(), user.allowedMethods())

npm i request

app.js

const request = require('request');
request.post('http://service.com/upload', {form:{key:'value'}});
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a915-2b99f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a915-2b99f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?