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
-
0
votes1
answer470
viewsIterating web pages using Requests and Python
I am beginner in web scraping. How to learn making a database from data on selling semi-new cars on some websites. One of the sites is this url =…
-
0
votes1
answer724
viewsSite with hidden HTML
I need to extract the sales data of semi-new cars on some websites. One of the sites is the Locamerica company. However, on her website does not appear in the HTML page the content I need to…
-
0
votes0
answers136
viewsIonic 3 + Standard. Problem with http request on server
Edit: Solution 000webhost does not accept requests 'options' on your free plan. I was able to solve the problem by making the Lockable available on local network with the function php artisan serve…
-
0
votes0
answers351
viewsError when viewing API in Angular
Good morning, I’m trying to access my API through the angular method get of the http module, my files are in my repository github in case anyone wants to take a look. I am following this tutorial…
-
0
votes0
answers672
viewsBad request requsition http post angular
When performing an http post request, I am receiving: Object { headers: {...}, status: 400, statusText: "Bad Request", url: "https://hidden address", ok: false, name: "Httperrorresponse", message:…
-
0
votes1
answer118
viewsDoubt about query with parameters using Angularjs and http request get method
first of all, good afternoon. I have come to ask for your help because I have already spent a few hours looking for a solution and nothing. I am trying to limit the SELECT from financial list to the…
-
0
votes0
answers1197
viewsSpringframewok Httpmediatypenotsupportedexception: Content type 'text/Plain;charset=UTF-8' not supported
I’ve been trying to find solutions to this mistake and I can’t find. Error: 2018-07-24 16:44:50.541 WARN 25695 --- [nio-8080-exec-2] .w.s.Defaulthandlerexceptionresolver : Resolved Exception caused…
-
0
votes2
answers278
viewsHttp post request on Ionic does not send data as x-www-form-urlencoded
I need to make an http request to log in to my Ionic application, but my function needs to send the data as x-www-form-urlencoded, tried several different ways but still could not. public…
-
0
votes1
answer200
viewsConsume API with mandatory parameters
if I have an API that requires two mandatory parameters to be consumed, how should I insert them in a $http request? self.buscaPrestadores = function() { $http({ method: 'GET', url:…
-
0
votes0
answers104
viewsMy HTTP(GET) request is not running on ngOnInit() - Angular 6
I have a CRUD at Angular 6 that connects to Node and mysql. When I access the homepage the getQuotes() function loads all the data I need. When I access the screen to update a record and perform…
-
0
votes1
answer70
viewsFunction running before my request response
In a modal I have a form with data that can be edited. If the user confirms the update the data is updated and then it will be forwarding the new page. But on this new page the information that…
-
0
votes1
answer59
viewsProblems with requests in Angular
Good afternoon guys, I’m starting a new internship and already a few days I’m stuck on a task that I can not understand the failure, I must make a registration form that communicates with an API…
-
0
votes0
answers61
viewsProblems with the request npm module
I’m having some difficulty making HTTP requests. The code: import Request from 'Request'; function xxx (tomboCodBarra){ const options = { url:…
-
0
votes2
answers1371
viewsHow to receive express headers sent by Xios in React.js
My front sends requests with Axios to Node express API this way: class ServiceRequest { constructor() { this.api = axios.create({ baseURL: URL_BASE, timeout: 1000, headers: { 'Content-Type':…
-
0
votes1
answer469
viewsSend special character in Request body via Httprequest in Delphi XE2?
I am consuming an API (POST), via Delphi for sending NF-e XML. I am using Httprequest. In the body of the request (body) I must pass the xml as follows: xml= But the issuer’s social reason (xName)…
-
0
votes0
answers40
viewsHTTP protocols
I’m new to development and I’m learning how to make a web service below this my method of consultation, insertion and removal. they are already working, however I wanted to know how to pass in the…
-
0
votes1
answer212
viewsRequest in graphane API with PHP
I’m trying to create a PHP file that does direct authentication on GRAPHANA and displays the DASHBOARD on my page, but is not displaying anything with the structure below: <?php //Server url $url…
-
0
votes1
answer88
viewsVariable does not change in nodejs
I am developing a Node application for Guardhouse Communication (API) and I am having trouble changing the value of a variable. follows below the code: var net = require("net"); var express =…
-
0
votes1
answer81
viewsHTML being built before the return of the Angular api
I want to receive data from my API and build cards with them dynamically, so I’m using Angular’s 'Binding', but my HTML is being built before the answer is completed, so it’s seen as Undefined. I’ve…
-
0
votes1
answer119
viewsHow to upload large files to google drive
I’m trying to upload files from 1-4gb to the google drive(v3) , using phyton3.8, but when I always have errors in the execution: Typeerror: 'Preparedrequest' Object is not callable def…
-
0
votes1
answer921
viewsCreate a loading(spinner) in an asynchronous request with React
I have an application with the front in React and the back with Node, and I needed that the moment the user pressed the button, the loading appeared and then the request was performed, or while the…
-
0
votes1
answer68
viewsHow to make a request... Xmlhttprequest with array
following code: let info = new Array() info[0] = 'index.php' info[1] = 'portifolio.php' info[2] = 'nn' let url = ['https://xraros.000webhostapp.com/'] let proxy =…
-
0
votes2
answers423
viewsHow to make a [GET] request with custom headers in Angular 10?
I need to make a call to my Angular 10 microservice, passing some information in the Request Header. However, doing so returns the following error: Error triggered in console while calling service…
-
0
votes2
answers92
viewsProblems when passing an object in an Httppost request
I’m creating a Dotnet API, and when I tried to test a Post request with Postman the only data coming to my controller’s method is Name and CPF. Below is an image with the request I’m making in…
-
0
votes1
answer101
viewsI get 404 code at a PUT but GET works normally: {body: {...}, url: "api/modes/1", headers: Httpheaders, status: 404, statusText: "Not Found"}
I am a student and beginner in Angular and at the moment I will continue to use PTO in a project, but before that I am preparing CRUD methods so I can work on them, so I am going through request…
-
0
votes0
answers7
viewsid captured in the request capturing the name of scripts files
The part of the route where the error is happening is this, the beginning of the controller is described like this module.exports.showOneCampground = async (req, res)=>{ const { id } =…
-
0
votes1
answer30
viewsSource URL in Angular REST request
Hello In the REST request of the Ionic application with Angular is automatically added the source URL: http://localhost:8100/127.0.0.1:5000/medicao? start date=2020-12-13&end date=2020-12-20…
-
0
votes1
answer41
viewsI can’t handle exceptions in the Controller on an ASP.NET API
In the code below I am trying to change the status of the request when I could not find the Project ID. // GET api/values/5 [HttpGet("{id}")] public Project Get(int id) { try { var project =…
-
0
votes1
answer27
viewsPOST method in the ASP.NET Controller API is auto-incrementing foreign key even if the value should be empty
I have the following code: public ActionResult Post(Project project) { try { _acess.AddProject(project); } catch(DataException ex) { BadRequest(ex.Message); } return Ok(); } Sent JSON object: {…
-
0
votes1
answer26
viewsHow do I perform more than one database query on a single request . GET on the same route on NODE.JS?
I am creating an API for a personal project, and I need to make 2 queries to the database in the same GET request. My code looks like this: module.exports = { async listarAnual(req, res, next){…
-
0
votes0
answers6
viewsAJAX - Requests made before the event occurs (executing action before the click)
I am developing a school system, using Php as a back-end language. I have a registered users query page, which initially opens listing all existing registrations, however there is a checkbox filter…
-
-1
votes1
answer441
viewsSave API request response as JSON file
When making a request to the URL(API), the result is a JSON. How can I save this JSON to a.json file locally on my machine? My code so far: var xhr = new XMLHttpRequest(); xhr.open("GET",…
-
-1
votes1
answer596
viewsRequest sending json
I’m trying to make a request for the python. Follow what I’ve tried: url = 'http://localhost:8080/detection/' headers = {'charset': 'utf-8'} response = requests.post(url, json=data, headers=headers)…
-
-1
votes1
answer48
viewsStorage of Cookies and Requests with Cookies
Page cookies are sent to the server in all requests or only when it is intentionally sent through javascript? The localStorage is stored in the browser cache, and the cookie? It is stored in the…
-
-1
votes1
answer122
viewsHow do I delete cookies on Node.js when the user leaves the site?
I am setting a cookie in Node.js when the user chooses the language: res.cookie('lang', req.body.lang) But I wanted to delete the cookie when it closes the site, so that when it comes back the…
-
-1
votes1
answer122
viewsHow to make an error handling for search not found in ASP.NET API?
The return outside the Try-catch block returns me an empty array, but what should I put there to return some error message in the API request status? Removing Ienumerable and switching to an…
-
-1
votes1
answer291
viewsUpload binary data via html-free post
I wanted a solution to do exactly what this html does, however using only php: uploading a binary data and normal fields (strings). <center> <form enctype="multipart/form-data"…
-
-1
votes1
answer92
viewsHow does an Ionic application connect to a server?
Creating a Mobile Client/Server Calculator Create a calculator where the user type two numbers and submit for a server to calculate The server will do the calculation and your application will show…
-
-1
votes1
answer825
viewsCalling API via Post with JS or JQ
Personal someone could help me by giving an example of how to consume an API that returns a JSON just like this API below: https://console.faceplusplus.com/documents/6329465 Staff implemented the…
-
-1
votes1
answer484
viewsHttp Request, with Certificate X509
Good morning, By accessing the following link :…
-
-1
votes2
answers989
viewsHTTP request works via POSTMAN but does NOT work via android app
I have an API for an android app that worked for a while. Used Laravel 5.3 on the server side and upgraded to 6.0. By android application, I have returned the error "400 - Bad Request", but via…
-
-1
votes1
answer102
viewsInsert HTTP does not work Cannot read Property 'id' of Undefined
Talk, you guys, good morning! To two days studying about HTTP request routes, in my GET I can easily, but when trying to use the POST returns the following: Cannot read Property 'id' of Undefined…
-
-1
votes1
answer286
viewsAXIOS SENDS 2 REQUESTS INSTEAD OF 1
Summary : When I Make Backend Requests with Postman all goes well, but when I make requests with Front-End Reactjs Axios 2 requests come to the API, 1 without Token and the other with Token. I am in…
-
-1
votes1
answer86
viewsHow to expect an HTTP request to end at Angular 5
I am creating a method that makes an HTTPSERVICE request in my API but I need to finish this request before continuing the rest of my Method, as I could force Angular to wait for the end of my…
-
-2
votes1
answer640
viewsHow to remove the question mark "?" at the end of the URL of a request?
I’m using a form to trigger a request GET to an endpoint of mine <button> instead of the tag <a> for links because the CSS style was only made for the tag <button>. Behold:…
-
-2
votes1
answer208
viewsHow do I log in automatically through a get, with the Request library in python?
Code: import requests username = 'admin' password = 'admin' headers = {'login': username, 'password': password } url = 'http://192.162.1.122/ISAPI/Event/notification/httpServers/ID' r =…
-
-2
votes1
answer806
viewsReturning the result of a query to the external API with Adonisjs
I am consuming an external API with Request in an application made with adonisjs, to request is done normally and is returning the statusCode and body but I cannot return to my API. I want to return…
-
-3
votes1
answer58
viewsAJAX AND XHR FALIED REQUEST PROBLEM
I have an application on Node.js in an Ubuntu VPS 18.4, but when trying to make a login request for testing, I get a Google Chrome error; "net::ERR_CONNECTION_REFUSED". He tells me he had some…