Questions tagged as 'http'

1
answer

Error with retrofit

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY at line 1 column 2 path $ public interface RestApi { @GET("/posts") Call<Model[]> getWheatherReport(); } public class Mai...
asked by 29.07.2016 / 18:15
2
answers

PHP in Browser Write, Read and Update .txt, Locally [closed]

In the client browser! Locally ... How can I create and save to a local .txt file on the client machine the value of two String variables. This script will be logged in and every time the login is done this update will be updated "overwrit...
asked by 08.08.2017 / 19:18
1
answer

http_build_query function

I'd like to know what the http_build_query function in php is for. I read the manual, but it became vague to me. link Is it right to use it within this context? $cURL = curl_init('http://teste'); curl_setopt($cURL, CURLO...
asked by 27.04.2015 / 15:27
2
answers

HttpGet parameter is not detected

Good afternoon guys, I do not know why my parameter is not recognized, can you help me? The value does not arrive in C # but is present in the angle C # [HttpGet] [Route("carregarUsuarioPorId")] public HttpResponseMessage BuscarUsuarioPorId()...
asked by 09.09.2017 / 21:48
1
answer

What is the usefulness of pipe () and map () functions in Angular 6?

I learned that I have to use both of these functions when I'm working with Http requests, I've learned that you have to use both of these functions as a cake recipe, which you use and ready, I wanted to know why you should use it. > Example of...
asked by 01.09.2018 / 17:19
1
answer

Receiving JSON with PHP via $ http.post ()

I want to read a JSON in PHP received from a function $http.post() of AngularJS, I already tried to use json_decode() and set the header (both PHP and Angular) but it did not work. PHP claims to be an undefined index, I tried to u...
asked by 25.05.2014 / 04:20
2
answers

AJAX Axios loading JavaScript

I am doing an AJAX request using the Github API by the axios and wanted to know how I do for while loading the information, it gives a console.log('carregando'); and create a component written "loading", and after that it deletes the load...
asked by 05.09.2018 / 22:07
3
answers

BadRequest 400 HttpParams Angular 4.3

I'm using the new angle library to make requests, HttpClient . Along with the angled 4+ I am using here in the enterprise for the backend , Java with Spring (boot). The problem is occurring at the time of making a GET request for the b...
asked by 04.12.2017 / 16:06
1
answer

How to change the host address where the "src" and "href" requests go? [closed]

Example: I give file_get_contents('http://youtube.com') and then, if the src and href of the html do not have the entire path, but only src="/pasta/arquivo.ext" , instead of src="https://youtube.com/pasta/arquivo.ex...
asked by 27.06.2017 / 05:49
2
answers

How to get JSON data with Angular

I am studying angular and I am trying to receive JSON data from a webservice, but it has the following error:    XMLHttpRequest can not load    link . At the   'Access-Control-Allow-Origin' header is present on the requested   resource. Orig...
asked by 27.10.2016 / 20:03