Questions tagged as 'post'

1
answer

POST in Web API returns Invalid Content Type

I'm trying to send a POST request to a Web API. If I do it by Postman, it works: NowwhenItrytoexecutethroughcode,Igetthefollowingerror:{"status": false, "message": "Content Type Inválido. (Formato aceito: Content Type = \"application/...
asked by 23.03.2018 / 18:41
1
answer

POST with angle 5

So, I'm trying to make an app with angular 5 using auth with token. For that, in login, I need to make a post in my API (which I tested by postman and it's working), but I'm having a hard time doing this with the angular. My code is as follows:...
asked by 31.01.2018 / 16:59
1
answer

Sending Data via Link (POST or GET)

Good morning my dear ones, I'm new here ... First of all, I want to point out that I already read the topics that exist in this forum and I could not solve my problem! My problem is to send only the id of the bank from one PHP page to anot...
asked by 18.02.2017 / 12:44
1
answer

What does (-X, -H, -d) mean for this command (curl -X POST -H "Content-Type: application / json" -d) and how to do it from the php file?

curl -X POST -H "Content-Type: application/json" -d I need to perform this command and send a JSON to a particular API that will return a response but I do not know how the structure of that would look in a PHP file and what that data means (-...
asked by 30.07.2016 / 13:06
1
answer

Error doing POST containing "@" or "#" in PHP with cURL

I'm having a problem and I can not fix it, I have a PHP script that submits a form using cURL. Initially I used the format array(key => value) to submit the POST data. However, I had a problem:    When @ is at the beginning of...
asked by 22.01.2016 / 17:20
2
answers

Android: Send data via POST

I know how to do this in other programming languages, however, when looking for examples of how to send data using POST in Android , I only find examples that use discontinued classes, such as: HttpClient HttpPost...
asked by 22.03.2016 / 04:45
2
answers

Sending form and array out of form via post

I have the following problem: I need to send via post the data of a form together with the data of an html table to which I add array in javascript. Unfortunately, I have no idea how to proceed in this case. I ask colleagues to...
asked by 24.06.2015 / 02:47
2
answers

Change value of variable after click button in PHP

Well, I need the $i to change value to $i++ with each click on the "Go" button. That is, I click the button and "1" will appear, when I click again "2" will appear, and so on. How can I do it? <form method="post"> &...
asked by 16.08.2015 / 16:52
3
answers

Embed YouTube via post using the API

I could not find what I wanted, just things like that, I even made a video and posted it on Youtube so you can understand what I want to do, if anyone can help me, I thank you, follow the video below: link I want to put a link in the tex...
asked by 09.05.2014 / 00:12
1
answer

Message "301 Moved Permanently" began to appear suddenly

I have two applications that worked perfectly, but without any changes to the code, they do not work anymore. On the one hand, an application with a JSP doing a POST call and passing two hidden parameters: <li> <form name="logi...
asked by 24.06.2014 / 23:40