Questions tagged as 'http'

1
answer

Angularjs - Http get is returning the html from the main page instead of json

Friends, I have a web app that works normally when installed on localhost. But when I deploy to a different server the http get returns the html from the main page instead of returning the json. Detail that occurs in chrome and firefox. In IE it...
asked by 20.04.2014 / 21:18
2
answers

Global angular variable problem

app.controller('controllerPrincipal', function($scope, $http){ var resultado; $http({method: 'GET', params: {id: 2}, url: 'url'}).success(function(data) { // limpando o retorno var p = data.search...
asked by 31.03.2014 / 22:15
1
answer

How to make one file redirect to another?

An HTTPS page of mine is requiring me to just link to HTTPS resources. Otherwise, user-warning messages appear. I wanted it to be possible to download a file from the site without any warning message to the user. Except that I need to save the f...
asked by 05.02.2014 / 13:54
0
answers

Http / 2 in browsers with http / 1.x

Good evening guys. I have a java web project where I use servlet 4.0 and for it to use http / 2 I have a question: Does my project http / 2 work in browsers with http / 1.x like http / 1? I do not know if I asked myself correctly.     
asked by 30.12.2018 / 21:38
1
answer

How to make requests via C #? WebRequest vs HttpClient

I have a project in .Net Framework 4.6.1, and in my research I concluded that I can use the WebRequest to make requests to other web services via the backend. I would like to be able to make requests using any HTTP verb . You can also us...
asked by 17.12.2018 / 13:12
0
answers

Access-Allow-Control-Origin does not restrict access from other domains

I'm creating an Api with Nodejs , where I set up the application header for Cross-Origin Resource Sharing to work properly. app.use(function (req, res, next) { res.header("Access-Control-Allow-Origin", "http://localhost:3000"); r...
asked by 10.12.2018 / 18:41
0
answers

How to improve this Javascript code in Nodejs?

I would like to know how I could improve this code. Thus, it would avoid too many excesses - initial errors. Moreover, through these modifications I could understand, understand, learn in another way. This would add new features and gain more pe...
asked by 20.11.2018 / 21:49
0
answers

Refactor the code using JAX-RS

I'm starting in the programming world and have to refactor a routine using another library. The routine uses the apache lib to do Http requests org.apache.http.* , I have to refactor using Jax-RS. Here is the example of the routine I ha...
asked by 21.11.2018 / 15:38
1
answer

API qrcode Google does not recognize the +

I'm using a Google API to generate qr code. However, the generated image is not displaying the "+" character. He trades for space. As an example it follows: https://chart.googleapis.com/chart?cht=qr&chs=300x300&chl=12345678901234567892...
asked by 14.11.2018 / 15:31
0
answers

authentication token in SIM800L POST request

Hello. I have been facing some problems when it comes to adding a TOKEN to the HTTP request header, which is POST type, with the SIM800L GPS module. I'm using this module: Andtheproblemiswhenaddinganinformationintheheader.ItriedusingAT+HTT...
asked by 12.11.2018 / 05:16