Category "post"

How to post JSON data to FastAPI backend without using Swagger UI?

I am trying to do a simple POST operation using FastAPI. I have created a basic structure using BaseModel, which has only two attributes, namely 'name' and 'rol

Telegram bots API responds 403 Forbidden

I'm fairly new to programming and I want to make a simple bot for telegram. After creating new bot using bot father and getting token, I made a simple HTTP post

Add custom post type template via plugin

I'm creating a plugin for a custom post type. I want to add a custom template for it. But I'm not sure how to add it via the plugin. How can I add a custom pos

Post request to JSON server through FETCH api refreshes the page

I am trying to send POST requests through fetch API to JSON-server. Function is called on a simple button click (type 'button', not 'submit'). When I replace PO

Different types of POST requests in the same route in Flask

I want to have a page on my website where you have multiple buttons that send a different POST request to modify some part of my database. Currently, only the

FastAPI - How to upload file via form

I am making a REST API that requires uploading files. For testing purposes, I am uploading files through postman, but I don't know how to access the files on se

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

I have a little problem with my if(isset($_POST['submit'])) code. What I want is some echos and a table to not appear when the script is open but I do want it t

Is http put equivalent to delete and post? [duplicate]

I'm researching the difference between HTTP put and HTTP patch. As I understand it, the former replaces the entire resource (all fields must b

Angular 7: Sending post request gives error 405 (Method not allowed)

I have the CORS extension on Chrome and the GET request works fine but the POST request does not. I get the error "method not allowed" but since I have the CORS

Python: How do I get key/value pairs from the BaseHTTPRequestHandler HTTP POST handler?

given the simplest HTTP server, how do I get post variables in a BaseHTTPRequestHandler? from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer class H

send HTTP POST request in .net

How can I make an HTTP POST request and send data in the body ?