Questions tagged as 'post'

1
answer

Insert PHP variable PHP $ _POST

I have a question / problem, I want to insert in a table in my database a value that is PHP variable, when passing it through $ _POST it does not keep it, is there another way to do it ?, I leave the code, maybe I I made a mistake:...
asked by 04.11.2018 / 03:36
2
answers

Tried POST in AndroidStudio (error 400)

I'm doing an App on Android and I need to connect to an API hosted on localhost. /** Creating Connection **/ URL serverAddress = new URL(link); HttpURLConnection connection = (HttpURLConnectio...
asked by 25.10.2018 / 14:22
0
answers

how to correctly use POSTMAN with PHP POST variables?

I have the following url link has the following code <?php $username = $_POST['username']; $response["success"] = 1; $response["message"] = "2"; $response["username"] = $username; echo json_encode($response); ?> and he ret...
asked by 24.10.2018 / 00:28
0
answers

Error with Angular 2 to create Post and HTTP response

Because when creating a Post, the json returns by default, I have my service.ts addRestaurante(restaurante: Restaurante) { let json = JSON.stringify(restaurante); let params = "json="+json; let headers = new Headers({'Con...
asked by 16.10.2018 / 01:10
1
answer

POST form params In API REST

I have to store the data in a BD that sends me an API, this API sends me a POST request to my server with the data as parameters Literal the documentation tells me that "the following parameters as form params" { "solicitud": { "dato1":...
asked by 12.10.2018 / 17:02
0
answers

post Video Using Alamofire, error in the headers

I try to upload a video using Alamofire with its upload method - > multipartFormData, but I get an error 401, for the headers, it is assumed that the headers only ask me - > form-data and a token, I have it this way: func head...
asked by 03.10.2018 / 00:59
0
answers

Receive POST method parameters

How can I capture the parameters that an external page sends me by POST method. I have an application in c # that connects to an api "X" and said api returns parameters but for a request, to an url that I give, by POST method     
asked by 26.09.2018 / 21:13
0
answers

Problem laravel and http post with payu

I am integrating the payche webcheckout and I need to store information with the payu confirmation page, which sends me data by http post, the problem is that when I finish the transaction I am not receiving the data properly (I think) the form...
asked by 16.09.2018 / 10:26
0
answers

Cache GET and POST requests in a log file. log4j.xml

I am trying to collect the GET and POST requests from my application. I have been told that it is possible to do it in the simple log4j, but I can not find the filter that captures these requests. Do you know if it is possible? Thank you, bes...
asked by 14.09.2018 / 13:39
0
answers

How to do a POST in Java by passing it a JSON in the body?

I am trying to POST a server from my Java application but the answer I get is a "400" - Bad client Request. Something I'm doing wrong. I leave my code to see if you can help me: package web.hpi; import java.io.BufferedReader; import java.i...
asked by 14.09.2018 / 15:35