Questions tagged as 'http'

1
answer

What is the reason for the delay of the first consultation with Amazon RDS?

Always after a short period without queries, when requesting from Amazon RDS (MySQL), there is a delay of almost 20 seconds, while the following requisitions happen normally, as you can see in the image, highlighted in the green rectangle! I nee...
asked by 19.11.2014 / 21:30
1
answer

Two AsyncTasks running in parallel while requesting with HttpClient

I have two classes extending AsyncTask, in which they return a JSON from a server. I'm using the following code to run them simultaneously: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) AsyncTaskExemplo1.executeOnExecutor(...
asked by 20.02.2014 / 21:37
1
answer

When the 404 error in the header, and redirect to a specific page? [closed]

I have this page with link OFF: link But I do not have to do this with .htaccess , because I tried and it will not, I want to do with php . I tried something like this: if($httpCode == 404) { /* REDIRECT AQUI */ }...
asked by 06.08.2018 / 17:32
1
answer

HTTP Basic Authentication with AJAX and php

I'm trying to do a simple password authentication using HTTP BA. follow the codes: login.php <?php if(!(isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW']))){ header('WWW-Authenticate: Basic realm="Restricted A...
asked by 28.08.2018 / 02:46
1
answer

Problem not get using google API with Angular

I have an angled application that should search the Google API for long and lat. I created this method below to set up my call HTTP.GET() : ObterGeolocalizacao(): Observable<any> { const cep = this.formulariServices.ObterFor...
asked by 07.06.2018 / 16:26
1
answer

How can I register a route in IIS for my docker container?

I have a HTTP service that I am making available within a docker container . So far for all my HTTP services I'd create a redirection rule (URL Rewrite) in IIS that allowed my services to be available on a port other than the...
asked by 15.02.2018 / 11:13
1
answer

SCRIPT to Convert and Save Addresses

Developed in a REST API with CakePHP a script to convert a $lat and $lng coordinate into formatted addresses. The script checks if the coordinate is saved in the database, if it does not google search and already saved in the database....
asked by 23.10.2017 / 19:29
1
answer

HTTP connection with server does not return JSON data

Hello, I'm trying to get the data from a query via HTTP, but it's returning this error: org.json.JSONException: End of input at character 0 of The code I have is this: private class AsyncFetch extends AsyncTask<String, String, String...
asked by 01.10.2017 / 23:42
1
answer

How to make notifications the same as Facebook? AngularJS or JavaScript [closed]

I'd like to include notifications in my app. The app will be in Ionic, AngularJS, jQuery, NodeJS ... is there a way for the app to run a function at every X time? This function would give a get in NodeJS ...     
asked by 21.10.2017 / 23:13
1
answer

Post android error method

I would like to have the string username sent to the bank after the button is clicked, but it is giving error in the lines:    at com.example.thiago.myapplication.PostTest.tryLogin (PostTest.java:94)   at com.example.thiago.myapplication.Pos...
asked by 11.05.2017 / 21:07