Category "post"

Why I got reloading with a POST to json-server

I'm testing the json-server package with the following HTML, so my problem is the next one: My page reload after I click on My button I'm trying with a POST req

Python requests not sending {"Content-Type":"application/json"} header or is just ignoring body in HTTP POST

I'm writing some Python to communicate with an API, that uses RESTful. I've managed many successful GET commands, however, am having difficulties with POST. The

Can't create KuCoin order with Google App Scripts

I can get account details so my authentication appears correct but in trying to modify that code to create an order it returns a code 401 "msg":"Invalid KC-API-

Upload files to Nginx

is there a way to upload files to a server via http using nginx? I have a program that basically uses curl and the POST method via http to send files to a comp

upload image from react native app to symfony backend via axios

I want to upload an image from react native app to backend in symfony via axios. here is the code of the front end : const [pickedImage, setPickedImage] = u

hidden INPUT value not available in $_POST

I have a form that I use JavaScript to set the value of a hidden INPUT field which is the text of the OPTION selected. The $_POST captures the value of the OPT

VB.NET WebRequest with PHP POST

I am having trouble sending the post variable to received in the PHP document in my server. I tried it with the GET and it works fine. But what I notice is the

IPV6 Curl POST request

In IPV6 how to build CURL POST http request with the IPV6 address and port number.Any kind of thread will be appreciated. Tried to build the request as below

Upload a file via POST using RestSharp

I'm trying to simulate a simple multipart HTML form in C#. I was successful posting text as parameters using the addParameter function. Now I want to upload a

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 ?