Most voted "post" questions
The POST method sends the data by placing it in the body of the message. It keeps the URI separate from the data that will be sent and with this we can send any type of data by this method. When you make a record in a form and after sending the URI you do not have the question mark separating the data you entered, probably the form was sent by the POST method.
Learn more…420 questions
Sort by count of
-
1
votes1
answer1121
viewsUsing filter_input_array(INPUT_POST,"var_name") vs. $_POST
I have the following variable input in my form: <input class="caption_text" type="text" name="caption[]" required/> That I create dynamically with JS. After submitting I test the following:…
-
1
votes1
answer85
viewshttp post error
Friends, I would like to have the save method in the class itself, and I’m not getting it, I’m beginner in typescript. import { Injectable } from '@angular/core'; import { Http } from…
-
1
votes1
answer830
viewsPOST is not receiving JSON
I need some help with running a POST. 'Cause when I try to call my API (http://www.afectus.com.br/api/teste) for the execution of a Post, I am unable to pass the JSON to her. Follows the API used:…
-
1
votes2
answers60
viewsSave form attribute without name defined
I have a problem with a php script. The name attribute of a page receives a value that is generated by an array. What I need to do is basically generate a table in which each row has a button that…
-
1
votes1
answer285
viewsRecover response from a post using guzzle
I’m trying to catch the answer of a porst json with the guzzle in a simple php. This is the function in a Laravel project that posts to a url. (I’m using var_dump to show the result in the…
-
1
votes0
answers628
viewsHow to get back a POST sent by the Customer (Datasnap REST)
I have a Webservice Server REST developed by the IDE Embarcadero Delphi XE7, I need to take the return of POST customer’s. I created Webservice from the Datasnap REST Application, when creating the…
-
1
votes0
answers597
viewsGET parameter with special characters
I have already scoured the entire internet for the solution of my problem and as a last resort, I come here to ask you and hope to find a solution to my problem, following: I am performing a query…
-
1
votes1
answer3471
viewsJavascript POST Request
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery.post demo</title> <script…
-
1
votes0
answers54
viewsProblem with Enctype in the form
Hello, I have a project being developed in php, it was all done so I hosted the site, when I came across an error that did not happen locally. I have a form file, this page receives a parameter via…
-
1
votes1
answer179
viewsAJAX request for WCF with POST
How to make an AJAX request for a WCF service using POST? I am getting several errors with OPTIONS and POST methods that comes in the same request. Here is my code: Contract [OperationContract]…
-
1
votes1
answer9598
viewsAngular $http.post
I am developing an application with Angularjs and nodejs, where I have to send (POST) the data of a user who is registering. My file Node server.js is as follows:: var express = require('express');…
-
1
votes1
answer213
viewsSending parameters by android url
I have an android app running and need to send some parameters per URL quickly and easily to run. I use this code to perform this function, but it is already obsolete and sometimes it does not work…
-
1
votes2
answers952
viewsSql command does not run via php
I’m having a problem with my bd query. I want to make a login page with the following form: <form method="post" action="Login.php"> Email:<br> <input class="form-control"…
-
1
votes1
answer820
viewshttp post with Bodyrequest Sqlserver
Hello, How do I get a post request by passing an xml as date? tried so on another GET request and it worked: DECLARE @Tabela TABLE ( CampoXML XML); DECLARE @URL VARCHAR(8000) SELECT @URL =…
-
1
votes1
answer1742
viewsHow to open file with window.open in a post?
My controller returns two file types: pdf and excel. return File(stream, "application/pdf"); return File(new MemoryStream(ep.GetAsByteArray()),…
-
1
votes2
answers1382
viewsLaravel 5.3 with Ajax
Dear friends, I ask your help to help me solve an Ajax problem with Laravel 5.3 I am facing problems with Internal Server Error 500, and looking for information about it, it may be a problem of…
-
1
votes1
answer117
viewsAlternatives to the page request method by POST
I am developing a web application for my work. It consists of a Dashboard that will present company information to managers. In this context, I am trying to optimize the page by searching for the…
-
1
votes1
answer979
viewsSending POST with Python via Curl
I want to turn the form (which is working) into a URL to run in the backend <form action="/users/login?ssrc=head&returnurl=https%3a%2f%2fpt.stackoverflow.com%2f" method="post"> <input…
-
1
votes2
answers2037
viewsPass an array of objects via AJAX via POST and read the properties of objects in PHP
I’m having some problems solving this situation. I’m trying to pass my object array via AJAX to another PHP page and read the properties that are inside each object within that array. For you to try…
-
1
votes1
answer373
viewsERROR while retrieving data from a form through $_POST[] in PHP
I created a simple form: <form action="php/cadastro.php" method="post" enctype="multipart/form-data"> <fieldset> <legend>Autor:</legend> <input type="text" name="autor"…
-
1
votes1
answer1353
viewsSubmit to the same page and return to the same page
Friends, I have a one-page PHP site that at the bottom of the page has a contact form that submits to the same page. I wanted after submitting the form to return to the same Action to show the…
-
1
votes0
answers318
viewsSlim return on the same page of a POST submission
I’m sending a request post to a URL, but I need to return to the same page a message or alert saying if the ID is already registered or not. I already have the query and method to do this, but I am…
-
1
votes0
answers37
viewsProblems with Call Post
Following I am making the following mistake when calling a POST method 405 (Method Not Allowed) follows the method I’m trying to call @RequestMapping(value = "/upload", method = { RequestMethod.POST…
-
1
votes1
answer358
viewsHow to log a post into a web api
I want to know what the Web Api is receiving in the Post that I am sending. This is the code I’m using. var httpWebRequest =…
-
1
votes0
answers61
viewsPost Error - Payload (Node.js)
Today when I went to perform the post of a larger base 64 is returning it from my server. When uploading a smaller image it sends smoothly, I tried using some solutions limiting the server to 50mb…
-
1
votes1
answer1289
viewsAccess variable in and out of a javascript function?
I am trying to update some questions on a page, going through an _for with the number of steps equal to the total of questions, to inject in each passage a question via $.post(), and wait for the…
-
1
votes1
answer1145
viewsExpress return post
Good afternoon, I am having a problem in the return of POST on express, I wanted to register users using the following code : router.post('/user', (req,res,next) =>{ var obj =…
-
1
votes1
answer45
viewsWebservice PHP does not work!
I’m developing a system that will use a webservice in PHP and the structure that will be called to run this webservice is the following: <?php header("Content-Type: application/json;…
-
1
votes1
answer12653
viewsHow to make a POST in Javascript
I need to make a java script to run a POST directly on the browser console. Based on this, I wanted to run this: Sites used: http://csgobounty.com https://gyazo.com/9f712dcc5e1e10f238f51f0fd7827d1f…
-
1
votes0
answers124
viewsproblem with cookie in Curl
I am developing a login with Curl and I am making two requests, the first one makes the post to the action page of the form and generates a txt file with the cookie, soon after I make a request…
-
1
votes3
answers2634
viewsPOST method does not work!
Guys, I’m making a simple code... I just want to get the information typed in the form. But it doesn’t work, the GET works... the Post doesn’t. <!DOCTYPE html> <html lang="en">…
-
1
votes2
answers53
viewsEnable button when last request is executed successfully
Personal I am wanting to enable a button only when the last post request via Ajax is executed successfully. I have a table with several records with their respective information and ids. By clicking…
-
1
votes1
answer73
viewsHow to check if there was an error in the POST
I need to check if there was any error in the reply of onPostExecute or gave time out on the server, because sometimes it gives some error in the process and this method does not even start, as I…
-
1
votes1
answer216
viewsHow to concatenate a javascript object to a post form?
I have an object JSON that I built at runtime, I need it sent to my servlet, along with the other form fields, via post, how do I do this? I searched a lot but nothing worked. function createJSON()…
-
1
votes1
answer134
viewsMy POST is not sending anything
IN HTML: <form method="post" action="../../../consulta.php"> <input type="text" class="form-control" name="login" id="flogin" placeholder="Insira o seu Login"> <input type="submit"…
-
1
votes1
answer155
viewsjquery how to receive data line by line in a loop
In the test.php file I have: <?php echo "<input type='button' value='Envia' class='btenvia'/><br><br>"; echo "<div id='mostradados'></div>"; ?> <script…
-
1
votes1
answer226
viewsError: Notice: Undefined index: D1
I’m creating a filter for an online store, which will have these fields: And so far select * was working, but when I started deploying the filter it stopped working. Here is the form code and order…
-
1
votes0
answers275
viewsProblem when performing a test with POST method
I’m trying to run a unit test of the post method, but the system returns the Status expected <200> but was <404>. If I use the postaman with the Json I’m creating in Java, it returns the…
-
1
votes0
answers404
viewsJaspersoft - Date Format
Hello, We have the following version of Jaspersoft: <serverInfo> <build>BUILD_DATE_STAMP_BUILD_TIME_STAMP</build> <dateFormatPattern>yyyy-MM-dd</dateFormatPattern>…
-
1
votes1
answer83
viewsUPDATE problem and WHERE clause with two conditions
After a lot of research on the internet without getting a solution, I turn to the "university" on duty! I have two tables: contract (primary key) and contacts. Being the second linked to the first.…
-
1
votes0
answers38
viewsReceive $POST data to validate login
A little help hehe I’m having trouble creating a login validation in a pattern MVC. I think I managed to structure it right and my login screen appear in the index. So far everything okay. When I…
-
1
votes3
answers713
viewsSend a string name via post using javascript
Good evening, I’m only trying to send name to the server, but every time I pass the string to the server as "name:", here’s the way I’m trying: <!DOCTYPE html> <html> <head>…
-
1
votes0
answers376
viewsSandbox Does Not Send Notifications
The secure pay sandbox is not sending notifications to my page, the url is configured in the Integration Profiles -> seller tab, and also the notifitionURL in the transaction request. Successful…
-
1
votes1
answer471
viewsreq.body nãp works on Express
I’m trying to read parameters sent via post, but the express only shows on the console.log empty objects. This is the code import * as jsonServer from 'json-server' import {Express} from "express";…
-
1
votes1
answer2576
viewsBad Request in Post idHTTP with Delphi
I am trying to communicate with the API of an Ecommerce and all dozens of attempts that did only receive as response "HTTP request failed 400 HTTP/1.1 400 Bad Request". So I have been informed I…
-
1
votes0
answers225
viewsPHP Post - Run Function before Submit
Here’s what I can’t do: Let’s say my system url is www.meusistema.com.br and I need to send my system information to another one... In my system I have the following form…
-
1
votes1
answer25
viewserror in wordpress query
I have the following appointment : <?php $footerlocal = array( 'numberposts' => 2, 'post_type' => 'page', 'meta_query' => array( 'relation' => 'OR', array( 'key' => 'zona', 'value'…
-
1
votes2
answers121
views -
1
votes1
answer249
viewsTrack AJAX requests in progress
I am working on a page where I have an update button, when clicking on it runs a series of AJAX requests to complete the data available on the screen (4 requests to be more exact). Should the user…
-
1
votes1
answer134
viewsError Webrequest c#
I am making a POST type request for a URL, but I always receive as an error the following message "The underlying connection was closed: Unexpected error in an upload.". This request is made through…