Can a post request pass parameters through url? Like a get request

can the front-end post request pass parameters through url? Like a get request. Answer if you know

Mar.23,2021

Yes, you can take both url and body parameters.


URL can pass parameters either with GET or POST, but POSt also has more data transmission channels (more data can be transmitted without the restriction of URL length), and the format of passing parameters using URL is uniform, and there is no distinction between GET and POST


.
http://17koa.com/koa-generato.
.get('/editSelect/:id', user.editSelectData)

async editSelectData (ctx) {
       ctx.params.id;
    }
    :http://127.0.0.1:3000/editSelect/id(123)

is not clear about the meaning of the landlord. What the landlord means is that when making a POST request, submit a format such as' axiom 1, submission bread2, floor 3'. No problem, just transcode according to the relevant language and convert it to the format submitted by POST

.
Menu