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
-
0
votes1
answer92
viewsHow to pass a CPF as a parameter of the Nsdictionary type for a call with JSON and POST?
Hello, I have a question. I need to pass a CPF entered by the user as a parameter in my POST call to return with his data. The call works with a CPF already registered, but only works if the CPF is…
-
0
votes2
answers2568
viewsReceive PHP Json POST
I am trying to receive in PHP a Json via POST and display it on the screen, the Json is sent through an API that does not have access to the script you send, I am trying to print on the screen…
-
0
votes1
answer202
viewsHow to send an image per post at the angle
I wonder how I can be sending an image to an api at Angular 6 through the post method. First I must encode this image in base 64 and then I send all that coding as a key value????
-
0
votes0
answers90
viewsHow to send data, via POST, from android to PHP synchronously?
I need to send data to the database, and I’m using PHP. I was trying through the Ion library, but because it was asynchronous, the application featured Nullpointerexceptions when more than one data…
-
0
votes1
answer28
viewsI cannot declare variable inside id
@$c_id = $_POST['numero']; @$data_aa = $_POST['data_aa']; // Data esta vazio if($data_aa == ''){ $var = "oi"; echo "$var"; } If I put the variable $var outside the if(), works normally.…
-
0
votes1
answer69
viewsHow do I manipulate and submit data through GET and POST?
I have a web application and need to access an external url that has login and password. Later I must fill out a form, submit the data and receive the feedback in my application! This is possible…
-
0
votes1
answer355
viewsPOST Web API method returning null
I am making a Web API in C# ASP.NET and in the POST method the value is returning me null. I’m using Postman to play a JSON within value but still returns me null. public string…
-
0
votes1
answer37
viewsRecover POST when field name has score
I’m creating a form that has a field that way: <form name="form1"> <select name="cmbitens.99"> <option value="item 1">item1</option> <option value="item…
-
0
votes1
answer64
viewsWebservice Rest
I’m wondering how do I send one post in format json using a form. That’s the form that I use: <form action="rest/carros" enctype='application/json' accept-charset="utf-8" method="post">…
-
0
votes1
answer24
viewsSending Post to PHP
I have a page that receives a post with an array larger than 1000, this array was "small" and worked well, but I recently realized that part of the content sent now is not coming from the other…
-
0
votes1
answer44
viewsForm does not send the data to the next page
Hello, I’m making a system of calls to the company where I work, only for T.I. use, because we control by spreadsheet, and I’m having a problem sending the data by POST or GET to the next page, I…
-
0
votes1
answer137
viewsProblem submitting form with SELECT tag, empty $_POST array
When submitting the above form, the PHP script shows an error, saying that the index 'estab' is undefined. The function 'var_dump' shows an empty vector. <form action="PHP_scripts/gerarApp.php"…
-
0
votes1
answer281
viewsrequest.post() does not work properly generating a 301 redirect on Nginx
I have a problem when I use request.post('url', data), for some reason when the server receives this request, it redirects (301) the request to the same url losing the POST data, ending as a GET…
-
0
votes0
answers96
viewsProblem with POST Urlconnection
When sending parameter through the POST to a URL, I am redirected to another URL, it is redirecting me to the right URL, but it returns me: <script LANGUAGE=JavaScript>alert('Seu tempo…
-
0
votes1
answer26
views -
0
votes2
answers420
viewsPHP - Form with validation of fields sent over and over
Following the suggestion of the moderator Sergio, I am sending a new question, since the previous one was flagged as duplicate and the only answer received did not solve the problem. But I want to…
-
0
votes1
answer401
viewsMVC error 404 POST method
This is my controller: [HttpPost] public ActionResult TestePost(int id1) { ViewData["Teste"] = "O método POST funcionou, você digitou: " + id; return View("Index"); } [HttpGet] public ActionResult…
-
0
votes1
answer479
viewsIntegration between systems with PHP
I need to provide a service for other systems to consume. These systems can make requests POST (string, array, xml and json) and GET. Well, I know I can consume services from other systems using GET…
-
0
votes1
answer71
viewsError post in Swift with still
But I once came to you for help. I’m developing a Swift application using web service written in java hosted on Amazon AWS. When I try to register via post the registration is not carried out. The…
-
0
votes1
answer513
viewsSend PHP POST request via Xamarin
I need to submit a request on POST for a php file through this application. This code worked correctly on Windows Forms, however in Xamarin it’s not working... public void testar() { try { string…
-
0
votes1
answer117
viewsPass javascript value to php post
I’m having trouble picking up my location and moving on to the php post with onload. How can I do that ? The values I’m trying to capture are the lat and long google. function initMap() { var map =…
-
0
votes0
answers35
viewsProblem giving update in a php table with no return
I have no return on the page when I click on the input with name['edit'] even with Try catch, the page does not print anything, so I do not know what to do right, I wanted to know what I’m doing…
-
0
votes1
answer213
views404 when trying to access post url with springboot
Good evening, I have the code below with the implementation of a service Rest /teste123, and when calling this method from the angular-js code, already authenticated with the basic authentication of…
-
0
votes1
answer103
viewsjQuery POST php mysql (mobile)
I’m trying to do a post with jQuery mobile on my internal server, when I run the post by the browser it inserts the registry running 100% with exactly the same code, now when I do the test in the…
-
0
votes2
answers913
viewsUse $_POST in a Php variable
I’m learning to use POO I would like to ask for help, as I cannot insert the $_POST within a variable, I’ve researched and looked at my books, but I’m not getting any progress. I’m grateful for your…
-
0
votes1
answer76
viewsReturn of Incorrect Form
Hello! From a csv file, because after doing submit On the form do I get the return with the correct values? If the $_POST countries are the same $registo[1], wanted to return the $registration[0]…
-
0
votes1
answer74
viewsProblems with PHP POST
add-product.log. <?php include("header.php"); include("conexao.php"); include("banco-produtos.php");?> <?php $nome = $_POST["nome"]; $preco = $_POST["preco"]; $descricao =…
-
0
votes1
answer1894
viewsError: The request Entity’s media type 'Multipart/form-data' is not supported for this Resource
I’m trying to make a POST in a Webapi that is returning me the following error: The request Entity’s media type 'Multipart/form-data' is not supported for this Resource. Exceptionmessage: No…
-
0
votes1
answer46
viewsIf loop registration error
I have a registration form: <form action="Cadastro.php" method="post"> Nome de Usuário: <br> <input class="form-control" type="text" placeholder=" algo parecido com o seu nome"…
-
0
votes1
answer444
viewsPass Web Service header parameters?
I am trying to perform a web service call on Angularjs, however I am getting the following error message on the browser console (tested on Chrome and Firefox): Xmlhttprequest cannot load No…
-
0
votes0
answers105
views$. post () - Doubt
I got a problem: I’ve already been able to read and follow the facebook documentation, use their methods and get some hints that they provide. Now that I have achieved this, I need to send for…
-
0
votes1
answer138
viewsPOST method not working on the same page
While trying to upload a file it from error <form method="POST"> <input type="file" name="inputfileSendTorrent"> <input type="submit" name="submitSendTorrent"> </form>…
-
0
votes2
answers197
viewshow to fix Refusal in Webservice Post
When Sending the Post: $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "/CmisWebRequests.asmx/GetMessageResponse", data: dataToSend, dataType: "json", async: true, error:…
-
0
votes1
answer31
viewsBring data like the facebook wall
I am implementing a feature to bring data like the facebook post wall, apparently it is nothing very difficult, however, I have a question and I would like to know if someone has a solution or…
-
0
votes0
answers61
viewsError: HTTP Status 500 - org.json.Jsonobject cannot be cast to jdk.nashorn.api.scripting.Jsobject
In my java system appeared this error: I’m sweating the POSTMAN tool to study the case. HTTP Status 500 - org.json.Jsonobject cannot be cast to jdk.nashorn.api.scripting.Jsobject Code: import…
-
0
votes2
answers299
viewsAJAX javascript, PHP post does not work
Good morning, I’m created a code Java to send data using AJAX to a PHP page,my problem is that the POST is going empty to page I’m calling. This only happens when I call the Javascript (AJAX)…
-
0
votes1
answer237
viewsAndroid: How to make a request POST to grab an image
I need to get a server Bitmap through a POST method with the body (JSON) and header to put in an Imageview. I tried using Volley’s Imagerequest but I would need to pass the URL directly from my…
-
0
votes1
answer113
viewsSplit array according to payment types
Code of index php. <form action="add-to-cart2.php" method="post"> <label for="">Name</label> <input type="text" name="nome"> <br> <br> <label…
-
0
votes1
answer659
viewsPhp - Pick variable by _GET or _POST? How to make name appears instead of Cpf
Well, I’m doing a project where the student enters by Cpf and date of birth. However, in the user div <div=class"user"> in home.php (where the greeting and user name should be) Cpf appears…
-
0
votes1
answer243
viewsError making a javascript API post
I’m trying to post on the API using JSON, but it always returns page error not found. But I’m sure that the URL is correct, because when I use "POSTMAN" works perfectly. Follow the javascript code.…
-
0
votes1
answer40
viewsI need to get the children of an element
I need to get the value of inputs with ID nome and sobrenome, but when I use $_POST, it will return only the first, and I need all separately. <form method="POST"> <tr id = "0">…
-
0
votes1
answer398
viewsListar posts por categoria
I have several posts and some of them have a category called "Featured" and the others are without category, what I need to do is list all these posts, and the first always need to be the "Featured"…
-
0
votes2
answers684
viewsPass input values to PHP
I have two inputs, one filled automatically by a PHP script, and the other the user enters the value, and a third input to calculate the subtraction or addition of the first two inputs. I created…
-
0
votes1
answer217
views -
0
votes1
answer184
viewsHow to get back an HTTP POST (IOS SWIFT)
I need to do an HTTP POST for a page that simply returns a literal (which can be "OK" or "ERROR") I’ve missed one tutorial from the WEB that shows how to do this and it returns a JSON, followed the…
-
0
votes0
answers480
viewsMethodnotallowedhttpexception in Routecollection.php - Laravel 5.4
I got this Error by putting a project on the server and trying to insert a product into the database. Error Whoops, looks like Something Went Wrong. (1/1) Methodnotallowedhttpexception in…
-
0
votes2
answers398
viewsSession does not work as expected in Ajax and PHP request
Well I have a main page index php. where the person executes an action and makes a request POST with Ajax. In this main file I create a session with some data that I want to keep safer and not be…
-
0
votes0
answers108
viewsError making POST from a json to a Web API
It’s giving me an error when I try to make a POST to the API that error is: System.Net.Webexception: Remote server returned an error: (405) Method not allowed. The code I’m using is: var…
-
0
votes0
answers31
viewsHow to take part of the text of a form to send to a table
I have a form that after being processed generates an excel file with the data of this form using $_POST to get the values. I need a way to get the name that appears on the side of each input to…
-
0
votes1
answer1243
viewsHow to capture (GET) multiple values sent in the same variable (PHP)?
After a query, I am sending different values through the same variable (through an input): <input type="hidden" id="sku" name="sku" value="<?= $reg->sku ?>"> This way, my URL is as…