Questions tagged as 'http'

2
answers

Parse link header in golang

I want to make a request in Go to an API but the answers are paged so I have to go through them. The pagination comes on the header in the element link , something like this: <page=3>; rel="next",<page=1>; re...
asked by 15.04.2016 / 02:58
1
answer

Spring boot security http basic with oauth2 resource server

I am trying to configure a spring boot web application to use the basic http security which will be used for the web pages, and additional I need to implement OAuth2 security for an android application to connect. The problem I have is that t...
asked by 06.06.2018 / 02:44
1
answer

Send image to the server with MultipartEntityBuilder and HttpURLConnection

I am trying to send an image to the server using HttpUrlConnection and MultipartEntityBuilder. The problem is that when I execute the background function, to send it and get as a response a String that says on the part of the server that has bee...
asked by 15.02.2017 / 19:40
2
answers

Error consuming web service with POST and GET in Angularjs

Hi, I have a problem that keeps me from moving forward. I have a Web Service in which it asks to enter coordinates (INPUT); these, if they are correct, will send in JSON format a list of the name of the nearby branches (OUTPUT). You ca...
asked by 01.09.2016 / 05:40
1
answer

Autocomplete with call Ajax in AngularJS

I want to implement an AutoComplete using an Ajax call for example: this.getCliente = function(data){ return $http.post(UrlobtenerDatosUsuario,data); } which returns a Json according to the parameters that it sends. Now once the data i...
asked by 03.08.2016 / 03:22
1
answer

Problems with passing parameters with GET in Volley [closed]

Who knows in the case of a GET request include the HasMap () of the paramenters? Well with the overwrite of getParams () it works for POST but not for GET. Any suggestions are appreciated. Greetings     
asked by 05.07.2016 / 01:30
2
answers

Run cURL with digest authentication in java

I have a curl command in the following way: curl -X POST 'https://xxxxxxxxxxxxx' --digest -u user:pass -H 'Content-Type: application/json' -H 'Accept: application/json' --data-binary $'{"from" : "xxxx", "msg" : "xxxxxx", "frag": null}' I...
asked by 13.06.2016 / 18:57
2
answers

How to run a PHP with Ionic 2

By making the request of my-php.php by GET of Http I literally retorted the code of the php file in a text string , what I need is that the file php be executed and I return the result of the query to the database in Json f...
asked by 25.05.2017 / 01:21
3
answers

$ http.post Angular POST

Trying to connect to an API from angular and I get the following error: XMLHttpRequest cannot load https://web/api/beta/ruc. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is the...
asked by 25.06.2016 / 23:27
2
answers

What is the difference between the verbs Patch and Put?

I do not want to fill them with useless text, since the question is very clear. In the faculty they taught me to use the verb Patch to make modifications and on the internet I see that Put is generally used. I would like someone to explain the d...
asked by 15.08.2018 / 16:25