Questions tagged as 'http'

0
answers

Error in http Ionic to an api de laravel

If anyone knows what the problem is, I need help for my ionic 3 application that calls a laravel api. It works correctly when you run my ionic application from the web, calling localhost: 8000 / api / employees, however I need to run the applica...
asked by 13.03.2018 / 17:04
0
answers

Android Studio gives error when connecting with API in PHP using Volley

I am using volley to make a POST request in HTTP to an API in PHP that I created. This API will insert in a database the value it receives. Your code is as follows: //datos para la conexión $usuario = "******"; $password = "******"; $servidor...
asked by 07.03.2018 / 12:17
1
answer

POST request with multipart / form-data header with angle 4

When trying to make a request POST to the server with angle 4, returns error, I have already tried a million things and nothing, I have investigated and nothing. this.http.post('localhost:53286/api/Home/Signup', formData, options).suscr...
asked by 19.12.2017 / 22:13
1
answer

Make HTTP Request by Post in IONIC 3

Someone would know how to make a request for POST, passing a value per header and two parameters, I'm doing it data = { 'nombre_usuario' : 'josejoserra', 'password' : '1234'}; return new Promise((resolve, reject) => { this.http.post(this...
asked by 10.12.2017 / 18:19
0
answers

Appropriate way to login to a web page from an android application?

My intention is to initiate session from code with the HTTP in a web page, and to extract data once inside the session. The problem is that to tell the truth, I am quite new in this field of HTTP ... I was looking for some tutorials on the web (...
asked by 17.09.2017 / 18:29
0
answers

Error 403 in Angular 4.3 Interceptor calls twice

I am consuming a service made with Java, which needs to be sent a jwt, previously generated by a login. For this I created an interceptor in Angular 4.3 vt-auth.interceptor.ts import { Injectable } from '@angular/core'; import { Ht...
asked by 28.09.2017 / 20:08
0
answers

Angular, PHP with MYSQL error

I have a problem when I try to recover the JSON object returned by the PHP script. When the server returns the JSON object and retrieves the object in Angular I get an error. If I delete the res.json () conversion from the code, the error...
asked by 21.07.2017 / 14:10
1
answer

Angular2 Module Http upload file support FormData

I need to upload a file in angle 2 but without having to convert it to base64 and send it as a string, somebody knows if the angular / http library supports FormData to be able to upload a file, if not, that another alternative I have. Gree...
asked by 26.06.2017 / 21:28
0
answers

Redirect to Http instead of https

My problem is that I am using WebSockets and to connect to my server I need to use ws: // but I get an error because it is not safe, then I try to change and use wss: // but it does not work like that. So the only solution I have is to stop u...
asked by 16.07.2017 / 01:27
1
answer

what am I doing wrong when generating my server https with ruby in kali?

Turns out I'm trying to mount a https web server and when I try it I get an error, the code is as follows: with this code generate the certificate: require 'webrick' require 'webrick/https' cert_name = [ %w[CN localhost], ] server = WEBri...
asked by 22.06.2017 / 12:20