返回首页
We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [post]

POST is one of the HTTP protocol methods; it is used when the client needs to send data to the server, such as when uploading a file, or submitting a completed form. The word post has several meanings, but this tag is specifically about HTTP POST requests.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

cURL POST Error 411 even when Content-Length specified

I cannot get what should be a simple POST to work. It's been very straightforward in Postman, but translating to command line cURL is not my strength (I do NOT use PHP). This is the line I've been ...
0
votes
0answers
12 views

Spring Boot: post and process multipart/form-data request with multiple body parts

I have the following endpoint that processes the multipart/form-data requests: @RequestMapping(value = "/test", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) public ResponseEntity<...
-5
votes
0answers
29 views

Why is there an error with the following code [duplicate]

Warning: mysqli_query() expects at least 2 parameters, 1 given in C:\xampp\htdocs\Bursary\saveapplication.php on line 12 the following code is intended to save data to bursary database but it is ...
1
vote
1answer
27 views

Which apache or PHP module is responsible to get posted variable assigned to same name after form submit

Is any module or extension responsible for getting the form post value in the same name without assigning in apache/php server? To explain more: I have a form like <label for='usernameid'>...
0
votes
0answers
10 views

Why does a call to RestTemplate postForEntity() does not return?

When I submit a request to a REST API the call for restTemplate.postForEntity(...) does not return. The subsequent System.out. is not executed and the deugger does not stop. What might cause this ...
0
votes
1answer
19 views

Post loop repeats by the number of posts

I'm developing a wordpress website Post loop repeats by the number of posts, if there are 5 posts it repeats 5 times <div class="announc"> <h2> مؤتمرات </h2> <...
0
votes
1answer
18 views

How to handle POST call with JSON having data with “parent-child” relationship using ASP.NET Web API Entity Framework?

I have a JSON which has a format as given below: { "header": { "source_code": "S12345" "user_id": "987456" }, "body":{ "source_code": "S12345", "wrapper_list": [ { "item_wrapper_code": "WRAP01", "...
1
vote
0answers
22 views

What is the best way to upload a file with React or JS and Websockets?

I am new to React. And I've done a file upload functionality. It works well for a small file size, but some files are working not good with it. So I want to have some advice about the right way. The ...
1
vote
1answer
38 views

Add Params HttpClient C#

I want to add a parameter, but I also have a body, I want to form this format: HttpPost http://localhost:8080/master/public/api/v1/invoice/send?token=123456 Currently I have: HttpPost http://...
0
votes
0answers
43 views

How to POST ArrayList to service API from android app?

I have seen a lot of similar questions but I can't figure out where to put what. I can see in the logcat that when Checkbox is checked, the item is added in the list. What I want to do is : Now, I ...
1
vote
1answer
28 views

Enter credentials then post JSON to api java

I have been trying to figure out a way to post a JSON to a external api. The issue is a don't want to hardcode the username and password but rather have it be used by anyone who has valid credentials ...
-2
votes
1answer
26 views

JavaScript and Python Communication via POST [duplicate]

So I'm creating a basic data science calculator using Python. I'm trying to send form data from the website to a python function based on Flask but alas its not working. I created a basic post ...
0
votes
0answers
7 views

Reroute HTTP Post Body Contents

I have a scenario where a legacy customer sends data via http post body. I need to have that post body rerouted to a new api without having the customer change their URL and post body contents. This ...
0
votes
0answers
27 views

Flutter - How to handle status code 302 in POST request?

I am trying to get JSON response (punch-in and punch-out details in JSON format) from the POST request but all i get is redirect 302 error and there is no location in the request headers. import '...
0
votes
0answers
36 views

How to send file in JAVA via POST without saving it to disk

I need to send file to a POST service from the server side code. The content of the file I need to send is in String format. I don't want to create the file in the disk. I can't find the way to send ...
-3
votes
1answer
30 views

is there a Python program using flask to use post method from a json [duplicate]

I have a json declared in my code. I want my json to be printed in postman once I hit that parameters. EX: Json = { "array": [ { "ques": "1", "resp": { ...
-1
votes
0answers
27 views

How would i get the value of HTTP response

This is the response, http://www.viewmyrecord.com/Texting/GetReply.asp?from=15621234567&to=15629876543&text=Hi Kid,Reminder November 22, 2019 w/ REN. How would i get the value of "from","to"...
0
votes
0answers
21 views

Swift - POST request always get wrong format problem

I am trying to send a POST request to my server with a JSON body. Here are the codes in Swift: static func request(urlString: String, parameters: [String:Any], completion: @escaping (Error?, ...
-2
votes
1answer
22 views

html form does not send values to php

Im having trouble getting $first and $second and $operation to be sent through to php and i dont know what im doing wrong <form action="calculator.php" method="post"> <fieldset> <p>...
0
votes
0answers
9 views

Anguar 7 application post fails for some client locations

I have an angular reactive form which when submitted posts the information to a Aspnet Web Api to save it to database. The form submit is working all the time except at a particular client location. I ...
0
votes
0answers
7 views

Error (HTTP/1.1 500 Internal Server Error) for POST from httpClient but works in Postman

I'm getting this error (HTTP/1.1 500 Internal Server Error) when I'm trying to do a POST in my REST client application, using HttpClient. Please let me know where it could be going wrong. Here is my ...
0
votes
1answer
25 views

Internal server error 500 when calling a post API

I'm testing an api when I send a post request the server responds with Code: 500 Error: Internal Server Error Get requests work perfectly fine. here is the link to API. Its a Swagger UI http://loan-...
-1
votes
2answers
39 views

JS - Create Redirect URL String from Form Answers

Our site is making the switch to Typeform from FormAssembly for our application form, but it's crucial for us to be able to customize the form's "redirect on completion" URLs based on how the user ...
0
votes
0answers
12 views

Displaying response cookies of a FetchAPI POST request

I'm looking for a way to log in the console the response cookies of a fetch POST request, but I don't figure how to do. For example here : I want to display the response cookie name and its value in ...
0
votes
1answer
16 views

error 415 Unsupported Media Type for an angular spring boot application

I develop a angular 8 Spring boot 2 application I try to send a POST request from an angular service, but I have the error 415 Unsupported Media Type service angular const headers = new ...
1
vote
0answers
27 views

How to add imges in blogger api post insert with python

posts = service.posts() body = { "kind": "blogger#post", "id": "" + str(post_id) + "", "title": "" + title + "", "content": "" + content + "" , "labels": [ ...
0
votes
1answer
15 views

Post request with node to MongoDB AND render success page?

this is my HTML Form: <form id="task-form" action="/mytask" method="POST"> <input type="text" name="name" placeholder="name of task" /> <input type="text" name="description" ...
0
votes
1answer
28 views

How do I correctly use variables in the POST request in Jenkins Slave

Here is my POST request. curl -v -k -H "Content-Type:application/json" -b /tmp/zen.cookies -X POST http://${WEB_URL}/zen-data/v2/serviceInstance -d {"serviceInstanceNamespace":"${namespace}","...
0
votes
0answers
17 views

Calling another microservice Api with RestTemplate using StreamingResponseBody

i have some problem with this rest call using spring-boot that is called API in first microservice, for creating my PDF @PostMapping(value = PdfMakerPathConstants.ENDPOINT_PDF_TYPE, consumes = ...
0
votes
1answer
24 views

Sending a cURL POST request as a link

I have a LAMP Django API that sends out a text message to my customer which says Click [This Link] to do A and [Another Link] to do B. I've been using POST requests to take in data to my API but that'...
0
votes
1answer
25 views

Add dynamic email address to post form

I have this code to post a contact form: $pp = new FormHandler(); $validator = $pp->getValidator(); $validator->fields(['name','phone'])->areRequired()->maxLength(50); $validator->...
0
votes
0answers
12 views

Error: Unauthorized when posting httprequest from asp.net core project

When I try to post an object of the following model, it returns System.Net.HttpStatusCode.Unauthorized message: public class Location { public string Description { get; set; } public string City { ...
-1
votes
1answer
13 views

fetch API with POST method giving me 500 (Internal Server Error)

I'm using a fetch with POST method to get data from an API in my index.html page but am getting 500 status code, can somebody please guide me on what could be wrong in my code <body> <h1>...
0
votes
3answers
14 views

Nodejs/Express clickable image on the form

I have an image on the form in NodeJs/Express app. I want it act as submit type button. <form id="form_nav1" action="/about" method="post"> <div> <img src="/images/...
0
votes
3answers
42 views

Posting an array of form values from JS

I have an ecommerce site where I can add a product to multiple categories. I had originally created a form something like this: <form action='parse.php' method='post'> //other form fields <...
0
votes
3answers
41 views

Why I do not get radio button value with php?

I´m passing a value of a radio button in a page with a form and I want to get the value of the selected option in another php file, but I can´t get that value. First page: <form class="...
0
votes
2answers
36 views

Using Ajax to send data to a Django model

I created the following Ajax request to send data to my views.py. Once the request is sent, the view should save thata in my database. The problem with my actual code is that the value that i submit ...
0
votes
0answers
38 views

Why I get 500 error on check if user exists? [on hold]

I try to check if the user exists in WordPress. this is my code for the ajax call: var idnumber = "111111111"; $.ajax({ url : '/wp-content/themes/flatsome-child/check_user.php', type: "POST", ...
0
votes
2answers
25 views

Flutter/Dart Http post request acces header info

I'm sending a post request for my login form; using dart's HTTP library. In its response, I have no idea how to access the header content; because that's where the token is, which I need for further ...
0
votes
1answer
12 views

How can I send this POST request with cURL?

Here is the HTML code <form method="POST" action="http://testnet.demo.example.org/api/v1/invoices"> <input type="hidden" name="storeId" value="...
0
votes
0answers
25 views

Use the same session to get and post a image captcha

What i am trying to do is to post a form which has an image captcha with the requests and python_anticaptcha module. A demo form can be found here. The form that i am trying to POST is actually more ...
0
votes
2answers
35 views

NodeJS with Routes wont Post and returns a 404 Exception

I'm making a simple blog post, but when I press submit, it only prints an array of what I entered on my form on the console. And I'm getting returned a 404 on my landing page after pressing the submit....
0
votes
1answer
50 views

How to get Google Apps Script doPost() to read my POST request?

I am running a scraping project from a headless browser using node.js and Puppeteer. I want to post the data to a Google Apps Script for further processing. I expect to see the data in my GAS project ...
1
vote
2answers
32 views

How can I send really long text to backend with JavaScript?

I have this form which cotains 2 input elements and 1 textarea element. The textarea is not limited and can have really big content. I want to send that data to backend where it will be processed ...
0
votes
1answer
37 views

Validating POST JSON body matches struct

I'm having trouble validating if JSON body passed to my POST endpoints matches the struct created for the acceptable JSON body. Any help would be appreciated type NewUser struct { UserID string ...
0
votes
1answer
55 views

Angular 7 http post using php fails with 404

For my website (programmed with Angular 7) I have built a contact form which I use to send a JSON object to a PHP file. Screenshot console error The MessageService passes the absolute path to the ...
-3
votes
0answers
14 views

Using clockify api to add a new project from a php app [closed]

some of you know if is it possible to add a new project in clockify with a php web page? Thank you very much for the answers and the help!
0
votes
0answers
14 views

ASP.NET Core: Add looped options to collection

So I have the below code <p>Home Team Scores</p> <form method="post" asp-page-handler="AddToList" > @for (int i = 0; i < Model.items.Count ; i++) { ...
0
votes
1answer
30 views

POST returns 404 while GET works fine on Ajax call to SpringMVC controller

I have to pass a long Base64 string from my JSP to my controller. I have all my @requestmapping methods on my controller as GET methods. when I tried to send my base64 string as a son value it threw ...
-1
votes
2answers
41 views

unable to get request body in postman

I have a controller function and an endpoint: controller uploadSalesOrderFromExcel : async function (req,res) { console.log(req.body); if (!req.body.branchId) { return ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞