Questions tagged as 'http-request'

1
answer

How to use an Angled Webhook?

I've never used any communication with Webhook, I'm currently receiving communication from the Moip Subscriptions API , when a new subscriber is registered I get a JSON with the event and subscriber information that was created. I'm using R...
asked by 03.03.2018 / 17:02
2
answers

Real-time verification of connection status with JS [duplicate]

I'm trying to do a real-time check of the internet connection status using JS, here is my code below: var checkConexao = window.setInterval(function() { if (this.readyState == 4 && this.status == 200) { //Oculta a modal...
asked by 06.02.2018 / 15:47
1
answer

Increase object to HTTP request

I'm trying to make a request in which I send a JSON (POST) and I get another one, I'm doing the following: I mount / feed my object and call this request: string URLRequest = URL + customer_id + "/cards"; HttpWebRequest request = (HttpWebReque...
asked by 25.07.2017 / 16:38
1
answer

Error When uploading with Bootstrap fileinput

Well I'm having problems with this plugin I would like to know if someone has already messed with it and if it could help in the question I'm having problems communicating with the controller I'm taking the following error 405 Method Not Allo...
asked by 01.06.2017 / 16:08
1
answer

Session getting open when I close the browser

I have a user control that stores a list of logged-in users on the system. Together with each user, I keep the id of the session that is logged in. Each session lasts around 20 without the user tinkering with the system. I do not allow the same...
asked by 07.04.2017 / 14:56
1
answer

APi $ HTTP For MySQL Database Requests

I've seen in classes and video lessons the staff using this $http when making requests with AngularJS, but they always pass a friendly url when making the connection and I do not know how they do it because type they do not pass neither u...
asked by 08.11.2016 / 22:08
1
answer

Node.js sending GET command [duplicate]

Hello! I'm having trouble using the GET / Test command in this case, in which it does not return any information. Node.js Code var http = require("http").createServer(servidor); var express = require('express'); var io = require("socket...
asked by 10.09.2016 / 18:28
1
answer

Angular JS - $ http.delete "Syntax error on token '.' comma expected on Eclipse

Eclipse keeps telling the error on $ http.delete, when other methods (like $ http.put, $ http.post) are not. What could it be? For example, $ http.put: updateUser: function(user, id){ return $http.put('http://localhost:8090/Spr...
asked by 15.06.2016 / 20:20
1
answer

request.post () does not work correctly by generating a 301 redirect in Nginx

I'm having a problem when using request.post('url', data) , for some reason when the server receives this request, it redirects (301) the request to the same url by losing the POST data, ending as a GET method. Python: >>>...
asked by 01.04.2016 / 22:33
2
answers

How to execute a function after AngularJS perform all get / post requests?

I need to call a function after all get / post requests are complete. Note: I can not call this function multiple times! angular .module('app.services') .config(InterceptorConfig) .service('InterceptorService',...
asked by 18.02.2016 / 18:07