Questions tagged as 'http'

1
answer

'No provider for Http' error when making GET request - Ionic 2

I have a Runtime Error with the method get of Http and I do not know why, who can help me thank you, the error is as follows:    Runtime Error Uncaught (in promise): Error: No provider for Http!   Error: No provider for H...
asked by 24.05.2017 / 18:16
1
answer

$ http.get Authorization Angular Error

Send the request as long as I do it without the header, once I put the header I get an error getMark : function(){ var tokenId = 'tok ' + sesionesControl.get('token'); //tokenId me regresa el token registrado......
asked by 11.06.2016 / 01:51
0
answers

Redirect from http to https except one page

I am redirecting from http to https to my page from the htaccess (I am using laravel), but I need a specific page to be the exception to this rule and keep using http: RewriteEngine On RewriteCond %{HTTP_HOST} ^misitio.com [NC] Rew...
asked by 24.08.2018 / 18:53
0
answers

How to get an image from an api rest using HttpClient in angular 4

I have the following service in my angular application: getProviderPhoto(id:string){ return this.http.get(this.apiUrl+"/"+id+"/images", {responseType: "blob"}); } And I need to convert the response of this service, which in this case...
asked by 16.05.2018 / 01:33
0
answers

Repeated service request with options

The code makes the request to the service only once: however the service is called twice by the WEB page, the first time with Request Method: OPTIONS (with empty response) and the second time with Request Method: GET (with the response of the...
asked by 14.05.2018 / 05:39
1
answer

multiple post angular parameters 2/4/5

I am working with angular 5 and httpClient, and I have to send 2 objects per post parameter but I do not know how to send them or how to receive them the objects are user1 who has 3 fields user2 who has 3 fields this is the code in my web api...
asked by 28.03.2018 / 21:01
1
answer

read a .json file in angularjs

Hi I need to read a json file in angular using a service, using the http service app.factory('Expenses', function($http){ var service = {}; service.entries = []; $http.get('data/get_all.json').then(function (data){ service.entr...
asked by 13.02.2018 / 17:05
0
answers

html5 getUserMedia in http

Is it possible to obtain the user's camera without using an https server? {name: "PermissionDeniedError", message: "" Only secure origins are allowed (see: link )." }     
asked by 24.11.2017 / 21:53
1
answer

Http request inside a loop Angular2 Typescript

I'm doing some exercises with Angular2 +, I do not have much experience with this version so I do not know how to achieve the idea that I have. I want to invoke a service that returns the 10 most popular songs of the moment, when that answer...
asked by 05.11.2017 / 03:14
2
answers

Consume rest service

I am trying to consume a rest service but at the moment of doing it, it sends me an error. I leave below the code I am occupying. import http.client metadatos = {a:1, b:2, c:3} conn = http.client.HTTPConnection("10.133.xxx.xxx")...
asked by 13.09.2017 / 18:35