Questions tagged as 'http-post'

4
answers

how do I get the correct value to an HttpResponse response = mHttpClient.execute (httppost);

I have a post method. That consumes a Webservice that returns a boolean (ws) (everything is correct up here), as you know, it returns a true or false (which makes it correct) How can I recover this result? This is the code HttpResponse r...
asked by 02.10.2017 / 19:41
1
answer

What does ENOSPC error mean when running a server?

Hello when running an application on localhost I get the following error. Before it did not happen, I modified the file server.js where the port runs, but never before had this happened to me. The port runs as seen, passes build, gulp and the pa...
asked by 20.07.2018 / 20:51
3
answers

Angular4: Why does not http request the service?

import { Injectable } from '@angular/core'; import { Http, Headers,Response } from '@angular/http'; import {Observable} from 'rxjs'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; @Injectable() export class LugaresService {...
asked by 07.11.2017 / 11:24
1
answer

How to use a permanent token with Http POST in REST services

Good morning, I'm trying to do a POST of a Json with a permanent token, but it always gives me error 401 unauthorized , code: public static async Task<Uri> CrearitemAsync(Item item) { using (var client = new HttpClie...
asked by 26.09.2017 / 16:30
1
answer

Http Post sends the data in disarray

I have a function that sends data that is in a vector with an http post, so what I do is go through the vector with a for cycle and I send the data to the database, the problem I have is that the data is arriving in disorder to the database, tha...
asked by 17.12.2018 / 22:34
1
answer

Structure of input data in a content-type: Angular form-data

They are asking me to send some data through the post method. I leave the code first: addImage(image, params): Observable<any> { const httpOptions = { headers: new HttpHeaders({ 'Authorization': this.token, 'Content-Type': 'm...
asked by 23.11.2018 / 15:00
1
answer

Xamarin POST Request headers

Hello friends I would like to send a POST from Xamarin , but I am getting this error when I try to send it and I would like to know if I am sending my headers correctly. When I try to send my app it stops and it throws me an error that says...
asked by 21.02.2018 / 01:44
1
answer

Use variable $ scope

I have a function where I obtain parameters from an API via $ http.post, the parameters that return are saved and printed inside the same request, however when I use them out the variable appears empty. $scope.gama = {}; factoryGamas.buscarGa...
asked by 28.11.2017 / 18:31
2
answers

urlconnection error on Android: NetworkOnMainThreadException

I'm trying to use url connection in my android app and it gives me the following error:    FATAL EXCEPTION: main                                                                    android.os.NetworkOnMainThreadException                       ...
asked by 20.11.2018 / 17:53
2
answers

Get file sent by POST

How do I get the file that is received here: [HttpPost] public async Task<IHttpActionResult> Post(HttpRequestMessage request) I am attaching the file like this, but it is sent without extension and with a name I do not want...
asked by 16.05.2018 / 03:07