Questions tagged as 'http-request'

3
answers

Implement HTTP POST and GET requests on Android

How do I send information via get in an url on Android, passing parameters? And how to return the data as JSON from my PHP?     
asked by 08.12.2014 / 20:20
2
answers

Synchronous requests

I need to make requests, however the first must be GET (getByName) and then execute the rest because they depend on it. It turns out that my code is sending an undefined as the requests depend on the contactsUri that is defined in this...
asked by 23.07.2015 / 18:15
3
answers

How to simulate JSON responses?

I need something that simulates JSON responses for me. Some time ago I had seen a site that did the following: You pass parameters by a URL, eg ?nome=Wesley&idade=21 I got the call in the JSON object like this: { nome:"...
asked by 14.07.2014 / 19:22
2
answers

HTTP GET using localhost

I'm creating an application using phonegap + onsen framework that will be powered by Web Services (RestFul). But I can not make a conversation between the two parties. My call to the Web Service looks like this: $http.get('http://localho...
asked by 30.07.2015 / 03:34
1
answer

What does Code 201 of a Request mean?

In searches I saw the 201 code of a Request means:    The request was met and resulted in a new feature being created. But I did not fully understand the meaning of this. What would be an example for a better understanding of...
asked by 07.12.2016 / 15:51
2
answers

GET, POST or PUT, which one to use for issuing an invoice?

What should I use when the intent is not to view, save, and update data? I am creating an API that makes the electronic invoice issue, I did the full CRUD for the information of the notes, but now I need to create a resource that transmits th...
asked by 31.07.2018 / 22:14
2
answers

"Can not read property" after an http.get request

Hello, how are you? I have the following problem. I'm making a RESTful request (http.get) and I'm writing the received object into a variable within the $ scope. However, when I try to access this variable inside the controller I get the foll...
asked by 20.10.2016 / 04:48
1
answer

HTTP Request React Native

An API sends a status:false the code gets status . While status==false , the image of exclamation.png and message 'Pedido em Análise' will be rendered. If status changes to true both image values an...
asked by 07.05.2018 / 02:29
1
answer

How to do HTTP request?

I would like to make an HTTP request to my college server by imitating the requests sent by the browser so that I can log in and check my grades. I already have experience with mobile development, my intention is in the future to develop an A...
asked by 13.04.2015 / 16:06
2
answers

Doubt over HTTP POST

I'm trying to send SMS through a WebService. Sending a single SMS is simple. Just use the URL in this format: https://xxxxx.com/sendMessage?messageText=mensagemdeteste&destination=552199998888&key=XXXX However according to the We...
asked by 08.04.2015 / 20:17