Questions tagged as 'http'

2
answers

Disable Access-Control-Allow-Origin in Chrome and Firefox

I'm developing an app using ionic on the macbook with OS X Yosemite. When trying to send data via POST or receive via GET to a remote server, the error appears: Chrome:    XMLHttpRequest can not load link . In 'Access-Control-Allow-Orig...
asked by 11.08.2015 / 04:27
3
answers

doubts with ajax and angular

I have my backend, in my controller I have a method salvarBairro(string dados) I'm using angular, this guy here calls my save methodBall of the back $scope.AddBairro = function (bairro) { $http.post("http://localhost:23714/Ba...
asked by 31.12.2015 / 10:20
1
answer

Access URL without receiving response

I have a page that performs several tasks. This page is open to system end users, who can access it via the browser. In certain situations I would like to trigger page rendering with a console application. Something like: using System.Net;...
asked by 05.11.2014 / 17:15
1
answer

How can I find out the method of http request by PHP? [duplicate]

I know that every HTTP request made, either by the browser or another resource, sends a certain method ( GET , POST , PUT , DELETE and so on). I'm thinking of building a Restful application with PHP, but I do not kn...
asked by 12.08.2016 / 20:10
1
answer

How do I stay with the selected item in a select after page transition?

What are the best ways to stay with a selected item in a select after page transition (Go to a page and then return with the fields already selected) using ASP.NET MVC? Session? Cache? TempData? Hidden field?     
asked by 01.06.2016 / 19:16
1
answer

WebSerivce only accepts requests from local server [closed]

I have a Webservice in PHP and I need to use it to integrate two applications. WS returns in JSON the data I need. The problem is that it returns only the data when the request is made from a local server. If I do the request from any web do...
asked by 09.05.2016 / 20:45
2
answers

Fatal error: Call to undefined function http_response_code () php 5.2 [duplicate]

I got a script (Java android and php) from a book I'm studying that simply takes a photo sent from android and saves it to a folder on my server. Home The android application ran without any error, but I ended up with an error in the file in...
asked by 05.04.2016 / 14:54
2
answers

HTTPS server postal consultation

I'm trying to request the address for the zip in a website, but it is giving the following error:    Mixed Content: The page at ' link ' was loaded over HTTPS,   but requested an insecure XMLHttpRequest endpoint   ' link '. This request has  ...
asked by 17.03.2016 / 15:58
1
answer

Message "301 Moved Permanently" began to appear suddenly

I have two applications that worked perfectly, but without any changes to the code, they do not work anymore. On the one hand, an application with a JSP doing a POST call and passing two hidden parameters: <li> <form name="logi...
asked by 24.06.2014 / 23:40
1
answer

POST Method in Angular

I have a simple application in Angular and I need to call my API to get a token . But I am facing difficulties. I'll try to explain a bit about my flow. I created a service class where I instantiate it only once to store a Token. This token...
asked by 11.06.2018 / 13:46