Questions tagged as 'http'

2
answers

Tomcat can not find the resources

Well I have an application with AngularJS that makes requests to the %% %% API as an example to learn how to use AngularJS, but the problem is that when I put the page with all the dependencies in a% Java% (this is what I do because I need to us...
asked by 18.09.2016 / 07:54
3
answers

Get current URL with WWW :: Mechanize PERL

Can you help me get the current URL where I am located (after login)? use strict; use WWW::Mechanize; use HTTP::Cookies; my $urlActual; my $url = "xxxxxxxxxxxxxx"; my $palabra; my $username = 'xxxxxxxxxx'; my $password = 'xxxxxxxxxxxxx'; my...
asked by 18.01.2017 / 12:48
3
answers

Receive variables post and write them in Html

I am receiving data by post from an android system, when responding with echo , this data reaches android. Now I want to use this data to use it in an html page, how can I do it? By the way, I use the Slim framework. <?php req...
asked by 11.03.2016 / 19:38
1
answer

The 'onreadystatechange' method of XMLHttpRequest is not executed

I have this code that I simplified to find out why it does not work, but I still can not find the error. I put a alert() after the onreadystatechange method and I checked that it never gets executed. Why can it be? localhost / f...
asked by 04.12.2018 / 05:12
2
answers

Access-Control-Allow-Headers in ServiceHTTP (POST) in agular 7

Someone could help me I have a problem. But I can not interpret it. user.service.ts postUser(user:User):Observable<User[]>{ let body = JSON.stringify(user); let headers = new HttpHeaders({ 'Content-Type': 'application/jso...
asked by 14.11.2018 / 21:07
1
answer

Because my code does not work on mobile devices

I made this html that is responsible for controlling some relays in my arduino. On the pc my mac opening it with google chrome works perfectly. But when I compile it with phonegap and run it on Android, the GET requests are not sent. I strike th...
asked by 31.12.2016 / 19:27
1
answer

Set a USER_AGENT in an android application, is it the same for HTTP?

I am trying to establish the USER_AGENT in an Android application, so that it can navigate, with which I indicate it. I am using the following lines of code: public void setUserAgent(){ DefaultHttpClient http = new DefaultHttpClient();...
asked by 02.11.2016 / 18:19
3
answers

Error http 405 on Android

I am doing an Android application and when I make a POST request the error 405 method not allowed appears. How can I fix the problem in order to make the request satisfactory?     
asked by 16.10.2016 / 16:09
1
answer

Problem Ionic Http Requests

I have my api rest done in nodejs (express) which is local link , my configuration of cors de my api rest it's const cors = require('cors') app.use(cors()); then in my ionic application when I start ionic serve -c in my browser on my pc...
asked by 19.11.2018 / 16:35
1
answer

Error 500 when sending POST with GPRS module SIM7100A, the data arrive null

and I tried to make a publication on the Thingspeak platform but the operation returns an incorrect request of 400, and I tried a publication with another test platform and got 200ok, but thingspeak did not work for me, the commands I use are as...
asked by 02.11.2018 / 11:50