Most voted "http-request" questions
Or _request_, in English, is a request for a resource, the client wants something from the server, has the similar structure of a response. Use the tag when your question is directly related to HTTP requests
Learn more…198 questions
Sort by count of
-
1
votes1
answer48
viewsAngularjs: Request $http to consume the domain’s external API giving error
I have an Angularjs application that logs in. I am trying after logging in, requesting an API that I am running on my machine running in C# to at least be able to communicate with it. But it made…
-
1
votes0
answers24
viewsBlock right access to file called by Ajax function
I’m adding layers of protection to a small system I own in PHP. In the requests via ajax, for example, I use the following code below to prevent people directly access the files that are called via…
-
0
votes2
answers106
viewsDownload data in String format and JPG images
I am implementing a project, which has a Web Service. In this Web Service are saved product data, containing the fields: Name, Value, Description and Product Image. I did some tests downloading only…
-
0
votes0
answers91
viewsNslocalizeddescription=Expected status code in (200-299), got 401
I’m trying to log in to an application in objective-c using Restkit but when I type in the email and password it shows the following error in the console:…
-
0
votes2
answers237
viewsAftnetworking with Token to download image
I’m testing Aftnetworking to download images from a backend, but I’m having errors downloading images. I tested several implementations, with this implementation presents error of content not…
-
0
votes1
answer2967
viewsProblems with iframe and X-Frame-Options Header
I was starting a simple project but when I will use the <iframe> there is a problem, the page problem which I am requesting does not appear. I did a search on the subject and found some people…
-
0
votes0
answers238
viewsChange value of all ssearch in a Jquery Datatable request
I’m using the methods $(_table) .DataTable() .column(colIdx) .search(text) .draw(); to perform filters on my Datatable. However, to decrease the number of requests, I perform this function only when…
-
0
votes1
answer364
views"The requested URL could not be Matched by routing" error using ZF2
I am using apigility (ZF2). The following error occurs when submitting a request: The requested URL could not be Matched by routing. The error occurs when I try to make a request get through the…
-
0
votes1
answer268
viewsAngular request $http is not returning data
Javascript code $http({ url: "http://app.calculadoradesementes.com.br", method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, data: { nome: "Rafael", email:…
-
0
votes1
answer242
viewsMysql Database Request $HTTP Api
People I see in courses and video lessons the staff ultilizando essa $http when making requests with Angularjs, only that they always pass a friendly url when making the connection and I do not know…
-
0
votes1
answer1918
viewsReturn a query with all data from a table for android
Good afternoon guys, I’ve been having a question for a long time but I’m just trying to get it out now. I have an app that communicates with an online database remotely through a PHP Web Service. I…
-
0
votes1
answer62
viewsIncrement object to HTTP request
I am trying to make a request in which I send a JSON (POST) and receive another, I am doing the following: mount/feed my object and call this request: string URLRequest = URL + customer_id +…
-
0
votes0
answers111
viewsWhat is the difference between Get, Push, Post methods?
I wanted to know the difference between the 3 in Javascript, I had been told that both do the same thing but have different semantics. But they didn’t explain what.
-
0
votes1
answer50
viewsSSL failure on GET request with Httpbuilder Groovy
I can’t make a requisition GET on the following link using Httpbuilder from Groovy: https://sistema.planassiste.mpu.mp.br/producao/login.aspx I have tested the method below: ignoreSSLIssues() But…
-
0
votes1
answer256
viewsConnection android webservice
Hello, folks I am developing an app in the Android Studio IDE and am having problems connecting to my webservice. I am receiving error: D/Answer: {"Success":"false","message":"A Jsonobject text must…
-
0
votes0
answers21
viewsDump html from a private Google Plus community
I’m trying to make a request http from a Google Plus page, from a private domain. I am currently using the lib requests python. import requests content =…
-
0
votes2
answers96
viewsHow to listen to a request at Angular 4
I’m making an HTTP request in Angular 4, but I need to listen to it and show it in the template in real time, that is to say, as long as the information is automatically registered in the grid.…
-
0
votes2
answers1014
viewsHow to execute a function after Angularjs perform all get/post requests?
I need to call a Function after all get/post requests are completed. Note: I cannot call this function several times! angular .module('app.services') .config(InterceptorConfig)…
-
0
votes0
answers56
viewsHTTP request error in Chrome and works on Edge and Firefox
I’m having a problem making an HTTP request with Angular 4, Edge and Firefox works without any problem, but in Chrome gives error in Post, Options passes quietly but the Post does not pass, in the…
-
0
votes1
answer93
viewsHTTP(200) verification in PHP
I did my checking so, only in mine gave an error and in other verification systems did not give. I wonder where it was that I went wrong? $host = 'IP do HOST'; $conectado = @fsockopen($host, 80); if…
-
0
votes1
answer281
viewsrequest.post() does not work properly generating a 301 redirect on Nginx
I have a problem when I use request.post('url', data), for some reason when the server receives this request, it redirects (301) the request to the same url losing the POST data, ending as a GET…
-
0
votes0
answers96
viewsProblem with POST Urlconnection
When sending parameter through the POST to a URL, I am redirected to another URL, it is redirecting me to the right URL, but it returns me: <script LANGUAGE=JavaScript>alert('Seu tempo…
-
0
votes2
answers2568
viewsReceive PHP Json POST
I am trying to receive in PHP a Json via POST and display it on the screen, the Json is sent through an API that does not have access to the script you send, I am trying to print on the screen…
-
0
votes1
answer2293
viewsHow to consult cnpj using Httpwebrequest?
The thing is, I’m creating a program to perform CPF and CNPJ queries on the IRS website. It’s not an attempt to circumvent the system. I’m bringing the captcha to a Picturebox so that the user can…
-
0
votes2
answers173
viewsHow to validate data securely in the frontend?
According to that comment by @Pauloalexandre, it would be possible to validate the data only on the front, so that the back only receives the ready data I know that it is possible to limit, through…
-
0
votes1
answer69
viewsHow do I manipulate and submit data through GET and POST?
I have a web application and need to access an external url that has login and password. Later I must fill out a form, submit the data and receive the feedback in my application! This is possible…
-
0
votes1
answer315
viewsAngular JS - $http.delete "Syntax error on token '.' ,, (comma) expected " on Eclipse
Eclipse keeps telling the error on $http.delete, when other methods (like $http.put, $http.post) are not. What could it be? For example, $http.put: updateUser: function(user, id){ return…
-
0
votes0
answers91
viewsBug reading csv by http request (Webservice)
I am having trouble reading a csv file via http request. It would be a Restful webservice that receives a csv and uses its contents. I’ve tried to read it in different ways, with opencsv, Javacsv..…
-
0
votes1
answer94
viewsHow to use HTTP GET APIS?
I have an API that performs object manipulation through a link, the parameters are passed on that link. I would like to know how I can use it or create a javascript method to run this link.
-
0
votes1
answer370
viewsGet method error in Python Requests library
I’m trying to learn how to use the library Requests in python, but there is an error that I do not know how to solve, in several tutorials creates the variable r =…
-
0
votes0
answers39
viewsC# - get JSESSIONID site ftp error 401
I can’t get JSESSIONID to download a file from an ftp. I need it because if I put JSESSIONID fixed the file low, otherwise it gives error 401 unauthorized. However this id changes. WebRequest…
-
0
votes0
answers528
viewsFailed to connect to server - Unable to resolve host "play.googleapis.com": No address Associated with hostname
I’m creating an app in Android Studio that will send information to a web service that will insert the data in the database. However when I press to enter the data, the program returns this error:…
-
0
votes1
answer63
viewsAdding another field to an Httparty field
For example in the "password_confirm" field I want to add the "password field". @@base_url = 'https://api-de-tarefas.herokuapp.com/users' @@body = { "user": { "email": Faker::Internet.email,…
-
0
votes1
answer68
viewsA Rest API is a combination of . EXE and . DLL’s?
I would like to know exactly how a Rest API works for the files that are part of it. See if my understanding is correct: When it is on the server, running, there will be a file. EXE running…
-
0
votes1
answer76
viewsFlutter Data Passage
I have a button that makes a request get on a server. Data passing is correct however at the time I try to recover in the build class of error. class Layout_ResultadoExames extends StatefulWidget{…
-
0
votes1
answer91
viewsHttp to Httpclient (Angular)
I’m trying to update the requisitions Http for HttpClient in Angular. Currently the code is: return this.http.get(`${this.url}/grupos`).map(res => res.json()); After researches I’m trying to…
-
0
votes1
answer365
viewsNode.js sending GET command
Hello! I am having trouble using the GET /test command in this case, in which no information returns. Node.js code var http = require("http").createServer(servidor); var express =…
-
0
votes1
answer186
viewsHttpsessionlistener a single session per user
How can I make only one http session is open per user on the system. Main technologies in the project: Spring 4 JSF 2.2 Hibernate 5 Example: The user Juca, works on your computer using 3 browser.…
-
0
votes1
answer23
viewsRequest get Failing
Hello, I have a problem that is affecting my development. I am developing an application that uses Axios and Vue.js and I wish to make a first get on a data that will go to a props and in that it…
-
0
votes1
answer263
viewsError trying to access site using Http Service
Hello, people. I really need your help. There is a system in which I am working at the University that consists of entering the academic system of the university, through the requisition of…
-
0
votes1
answer57
viewsURI Rest with Httpservlet
So, guys, I’m developing a mini framework for study purposes, using the Java front controller, and I came across the following problem. First of all I’ll explain how it’s working. I embed the Jetty…
-
0
votes1
answer333
viewsHTTP Access Control (CORS) for multiple domains
How to free HTTP Access Control (CORS) of images using Xmlhttprequest for all domains below on . htaccess and not using global permission with "*": Access-Control-Allow-Origin:…
-
0
votes0
answers180
viewsMaking http post request to webservice
I’m making a requisition here http for a webservice apsh, to make request I do so: validaLogin(user: User) { var data = JSON.stringify({ email: user.email, senha: user.senha }); console.log(data);…
-
0
votes1
answer262
viewsError While Uploading with Bootstrap fileinput
Well I’m having problems with this plugin would like to know if anyone has messed with it and if it could help in the question I am having problems communicating with the controller I am taking the…
-
0
votes0
answers449
viewsLaravel Expired Page, why?
I’m creating a Rest api here, for some reason I get this message "The page has expired due to inactivity. Please refresh and try again." Segue Controller <?php namespace App\Http\Controllers; use…
-
0
votes1
answer993
viewsreq.body is coming empty when calling api on Postman and the application
I am consuming an api in nodejs but I cannot pass the parameters req.body is becoming empty and I cannot identify the problem var express = require('express') var app = express() var bodyParser =…
-
0
votes3
answers233
viewsBadrequest 400 Httpparams Angular 4.3
I’m using the new library of angular to make requisitions, the HttpClient. Along with the 4+ angle I am using here in the company for the backend, Java with Spring (boot). The problem is occurring…
-
0
votes2
answers982
viewsReal-time check of connection status with JS
I am trying to perform a real-time check of the state of internet connection using JS, follows below my code: var checkConexao = window.setInterval(function() { if (this.readyState == 4 &&…
-
0
votes1
answer652
viewsHow to use a Webhook in Angular?
I have never used any communication with Webhook, at the moment I am receiving communication from API Moip Signatures, when a new subscriber is registered I receive a JSON with the event and…
-
0
votes0
answers179
viewsError making android HTTP request
I’m implementing a native android app that requests with a WS. When trying to make the connection in the method connect() of HttpURLConnection I’m getting an error that doesn’t fall into the catch…