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
-
2
votes4
answers184
viewsHow to set a GET request header in Golang
I’m trying to make Golang my first mid-high level language, but I’m having some problems. I can’t set a header for an external GET request at all, I searched the documentation, forums and the only…
-
2
votes0
answers18
viewsWhat HTTP method do you use to search for data using request body?
Previously, according to RFC2616, which dealt with the HTTP/1.1 specs, it said that the content of a request body should be ignored when the method used was GET. Therefore, the POST was used when we…
-
1
votes1
answer103
viewsAndroid: Inputstream
There’s a way I can change: InputStream is = getAssets().open("xxx.html"); for: InputStream is = ("http://www.xxx.com.br/xxx.html"); Maybe using Httpurlconnection but don’t know how to implement.…
-
1
votes1
answer803
viewsJunit with spring Autowired
I have a big problem that in my Genericservice I use an @Autowired on an Httpservletrequest (Even not knowing the utility, because, I do not know the architecture so well), and needed to use unit…
-
1
votes1
answer109
viewsWhat is the reason for the delay of the first consultation with Amazon RDS?
Always after a brief period without queries, when making a request to Amazon RDS (Mysql), it takes almost 20 seconds, while the following requests usually happen, as you can see in the image,…
-
1
votes1
answer541
viewsCheck if file is newer and then download
I created a windows service, which daily downloads some files. These files have about 2Gb (that’s right, two gigabytes!). The problem is that these files are every day available on the site, but are…
c# filing-cabinet http-request webrequestasked 10 years, 2 months ago Guilherme de Jesus Santos 6,566 -
1
votes0
answers73
viewsI am making a post to register ads but he does not find the user_id
I’m creating a post where I can register and save ads from my app to my api. When I click to register it returns the error got 422 however if I put the user id manually and permanently (user_id =…
-
1
votes1
answer419
viewsHow to use the "Answer" of an XMLHTTPREQUEST in Cakephp (2.5)
CONCLUSION: I put it up here to get a quick look, I was using onClick to get this function, but I was leaving the request(request) out of function so it wasn’t working. I have an action in the Posts…
-
1
votes1
answer342
viewsProblem when making AJAX DELETE request by sending JSON
When making a request DELETE a url that does not support OPTIONS browser returns me: 405 Method Not Allowed Is there any way to prevent, in my Javascript code, the browser to send a pre-request…
-
1
votes1
answer699
viewsIs it possible to manipulate http request header?
This is a requisition http, it is possible to perform header manipulation of the request? Or is it only possible to make such a manipulation in the response? If possible, in which languages with…
-
1
votes0
answers117
viewsSlim Framework status code 404
When making requests I get the following error. Xmlhttprequest cannot load http://www.domain.com.br/api. Response for preflight has invalid HTTP status code 404 Man .htaccess is like this:…
php htaccess http-request http-headers slimasked 8 years, 6 months ago willian rodrigues andrade 85 -
1
votes0
answers35
viewsContent size of a variable from a request
I have a web application developed in Laravel 5.0, which receives a request via POST from another application. The data sent is a JSON with a relatively large amount of information, and when I get…
-
1
votes2
answers705
viewsHow to create JAX-RS REST Service webservice and consume with android application?
I created a JAX-RS REST Service, with a function that returns me a Jsonobject, I can recover this information in the browser through the URL, but I can’t get it back on an android app. How do I…
-
1
votes1
answer92
viewsWhat does it mean to put a guy before a statement?
Hello, I was studying HTTP Requests in Java when I came across a code and in a certain line there was a statement a little bit strange to me, someone can explain to me what a type means before a…
-
1
votes1
answer167
viewsError with http.post and http.get with Angular 2
Well, I’m having a problem sending and retrieving data with Angular 2. Auth.ts import {Observable} from 'rxjs/Observable'; import {Injectable} from "angular2/core"; import {Http, Response} from…
-
1
votes1
answer334
viewsRequest by browser works, but Java gives error 301
When I make an HTTP request to that URL, It works and I get a CSV file. However, when calling the same URL via Java (by get or post), I’m getting code 301. Could someone help me? Here’s my code:…
-
1
votes1
answer153
viewsProgram to pick up on a web page events
source code here too: https://pastebin.com/DesqWJfY Objective: to catch events in http://www.bhaktiyogapura.com/2018/03/calendario-vaisnava-marco-2018/ Each month, the URL changes only the fine, for…
-
1
votes1
answer287
viewsWhat exactly is the UTL_HTTP (ORACLE) SET_PROXY Proxy
utl_http.set_proxy(http://pgau:abcd@[email protected]:5678'); In this example what exactly this Proxy address ? I tried the internal IP and it didn’t work , the below my company said not to have…
-
1
votes0
answers29
viewsWeb service data format identification
Good night! I am implemented a service in one system for other systems to consume. This system consumes data in XML and JSON formats. I want to know if there is any way to identify when the user…
-
1
votes0
answers37
viewsHow to access a browser request history
I am learning about networks and etc and I would like to know if it is possible to see a history of the requests that the browser makes is if given, how to have access to it.
-
1
votes1
answer7692
viewsLaravel request validation
Well I’m having problems with validations on laravel, in real it is validating correctly but need to inform the user which field X is required or not. Today the system simply sends to same screen…
-
1
votes0
answers370
viewsDynamic input reading in C#
I am developing a solution in Winforms C# that receives a text file via network, via HttpWebRequest: HttpWebRequest request = (HttpWebRequest)WebRequest.Create(conexao + "/piece.txt");…
-
1
votes1
answer570
viewsHow do I get parameters from a PUT request?
I am starting to study Web Service and created an example of an API in REST. I am passing parameters via PUT to the API and picking up with the parse_str in PHP but what comes back to me is…
-
1
votes1
answer77
viewsSession staying open when I close the browser
I have a user control that stores in an Applitioscope a list of users logged in to the system. Together with each user, I save the session id that it is logged in. Each session lasts around 20…
-
1
votes1
answer109
viewsError When Listing Object Data in PHP
How to list these data from Sponse, mainly IMG, follows the data BELOW: $data = file_get_contents("php://input"); $objData = json_decode($data); $categoria =…
-
1
votes1
answer448
viewsIonic 2, Http request only works after second call
I created an application sidemenu and a provider (conexao-home.ts). On a test page I created the function buscarUsuarios (associated with a button), calling the function getRemoteUsers in the…
-
1
votes0
answers37
viewsProblems with Call Post
Following I am making the following mistake when calling a POST method 405 (Method Not Allowed) follows the method I’m trying to call @RequestMapping(value = "/upload", method = { RequestMethod.POST…
-
1
votes1
answer780
viewsHttpwebrequest C#error
I am making a request in a URL and trying to get the answer, I get the following error: The underlying connection was closed: Unexpected error in an upload. The point is that this instruction worked…
-
1
votes1
answer589
viewsHow to receive an array in the body of a nodejs route
Good morning, guys. I’m having a really hard time. I started a week ago studying in nodejs, so I’m well. I have a code that returns an object in json format to me and I would like to create a page…
-
1
votes1
answer247
viewsChatbot PHP - Facebook Messenger
Hello, all right? I’m creating a chatbot but I’m having problems with the HTTP request (POST). When I call a function to send the POST to Facebook Messenger it seems to me that it loops and starts…
-
1
votes1
answer26
viewsCan’t my client find my Httpserver?
That’s my client code: public static void main(String[] args) throws IOException, InterruptedException { SendData sender = new SendData(); String JsonDeDados; String infos = "informacoes";…
-
1
votes0
answers2743
viewsAjax request with Authorization header
I’m trying to make an ajax request but it needs a BASIC authentication, follow my code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>…
-
1
votes0
answers54
viewsProblem when making a GET on my site when it is entered via www (React + Django)
I have a Jango application that uses React on one of your pages (not two separate Servers). On my React pages, I make HTTP requests to Django for the api using Django Rest Framework. This…
django react http-request https django-rest-frameworkasked 6 years, 3 months ago Gabriel Cavalcanti 47 -
1
votes0
answers129
viewsSSL authentication
I am facing a small problem with an api, whenever I send the request I get the following errors: jquery-3.3.1.min. js:2 Failed to load https://api.iugu.com/v1/invoices: Response to preflight request…
-
1
votes1
answer54
viewsHow to use "request" in the following situation
I have two methods in Controller that has the function of saving a new check and another that updates the check with edit. The two methods go through Request before entering into the bank, but…
-
1
votes1
answer758
viewsIDHTTP with Delphi - HTTP request failed 401 HTTP/1.1 401 Unauthorized
Good afternoon. I have an example of PHP PUT request code: $params["access_token"] = "### Chave de Acesso ###"; $data["Product"]["stock"] = 100; $url =…
-
1
votes1
answer134
viewsError Webrequest c#
I am making a POST type request for a URL, but I always receive as an error the following message "The underlying connection was closed: Unexpected error in an upload.". This request is made through…
-
1
votes1
answer1299
viewsAxios GET Request Response is Undefined
I’m trying to make an Next call in my Node JS Express app and sending the data to my index.ejs file. The problem is that i can see the data in my callApijavascript file but i cant access the…
-
1
votes1
answer644
viewsHow to pass a parameter through the URL using Httpget in ASP.NET CORE?
I have an application in ASP.NET CORE 2.0 where I did the following method in the controller [HttpGet] public IActionResult Index(int idLeilao) { ConsultaCarrosModel obj = new ConsultaCarrosModel();…
-
1
votes0
answers2042
viewsAxios get error - React Native
I’m taking a React Native course and I’m not able to make an HTTP request using Axios. This is my code: import React, { Component } from 'react' import { View } from 'react-native' import axios from…
-
1
votes0
answers153
viewsHow do I get my token in the header?
Guys, I’m 'stuck' in this part of the code, I’m generating my token pro browser but I can’t access it to save in my localStorage. I can’t, in any way access my header this way, every time returns…
-
1
votes1
answer745
viewsDDL Indy forcing TLS requests 1.2
I am trying to refactor the code the code of the DLL Gerencianet Payments for the DLL to make requests only by the protocol TLS 1.2. Reference: uGerenciaNetIndy.pas I am compiling the DLL through…
-
1
votes0
answers56
viewsByte[] to image conversion returning null
I am developing a mobile application that send photos of the application to the server, made in springboot. When receiving the request with the image, via json, I try to convert String to Image.…
-
1
votes1
answer199
viewsHow to access data sent by PUT (ajax) in php?
I am creating an application in REST format in which my front-end requests a PUT (By ajax) to the back-end. No request I am sending the new information for update, but I am not able to access this…
-
1
votes0
answers28
viewsWhat is the performance curve of the file that will consume an Xmlhttprequest via GET according to the date volume sent?
I wonder if there is a date volume with better performance in a Xmlhttprequest request via GET or if the performance is always directly proportional to the date amount var request = new…
-
1
votes0
answers44
viewsPUT error: All object fields are null
I have a user with id 3, a car with id 6 and I do a POST on the rental passing these 2 id’s, until then ok, the GET returns this { "id": 5, "usuarioCliente": { "id": 3, "nome": "Arthur", "cpf":…
-
1
votes2
answers674
viewsHow to send WS XML file from Safe Harbour (made in PHP) using Restsharp C#
I am trying to integrate a Ct-e XML file with the Safe Harbor Web Service (done in PHP) using Restsharp in C# and always returns message saying that they could not open XML or that file is empty.…
-
1
votes0
answers22
viewsVB.NET webserver gets spammando requests
Hello. I’ve just set up a Vb.net webserver to receive requests that arrive on the localhost. This webserver has the role of redirecting these requests to another address. What happens is that it…
-
1
votes1
answer377
viewsSend jwt in header by GET
Hello I would like to know how I could send a jwt in my header to consume in my API, a route get to catch users ( need auth ) my api to catch users: app.route('/users') .all(app.auth.authenticate())…
-
1
votes2
answers1407
viewsHow to return all objects of a JSON array
I have an API that returns an array, containing values of the type: [ { "nome": "JOSE" }, { "nome": "MARIA" }, { "nome": "SERGIO" } ] I need to return so I can display the information type: Name :…