POST method not working.
See original GitHub issueHello Guys, nice work you all did !.
I have a question about the POST request:
here’s my script
import { Application, Router } from "./deps.ts";
const app = new Application({ port: 3001 });
app.get("/", (ctx) => {
return { "hello": "world" };
});
app.post("/cadastrar", async (ctx) => {
console.log(ctx.req);
return ctx.req.body;
});
await app.run();
Postman
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
PHP $_POST not working? [duplicate] - Stack Overflow
Make sure that the "action" attribute on your form leads to the correct destination. · Try using $_REQUEST[] instead of $_POST, see if...
Read more >How to Fix Request Method 'POST' Not Supported - Hyperping
What Are the Best Methods to Solve the Request Method' Post' Not Supported Error? · Confirm That Your Input URL Is Correct ·...
Read more >$_POST - Manual - PHP
An associative array of variables passed to the current script via the HTTP POST method when using application/x-www-form-urlencoded or multipart/form-data ...
Read more >Using the POST method in a PHP form - HTML Form Guide
This tutorial will cover how PHP handles form data posted via the POST method. Introduction to the form. POST data is submitted by...
Read more >PHP - GET & POST Methods - Tutorialspoint
The POST method transfers information via HTTP headers. The information is encoded as described in case of GET method and put into a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is a racing condition. Will be fixed.
I am curious why a this stub cookie Middleware handler should make any difference to the body. I will investigate it further tomorrow.