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
-
12
votes3
answers4720
viewsImplement HTTP POST and GET Requests on Android
How do I send information via get to an Android url, passing parameters? And how do I return data like JSON from my PHP?
-
9
votes2
answers8501
viewsSynchronous requests
I need to make requisitions, but the first must be a GET (getByNome) and then run the rest because they depend on it. It turns out my code is sending a Undefined because the requisitions depend on…
-
9
votes5
answers2767
viewsHTTP methods in practice
I’ve seen the W3C documentation some questions here at Sopt: What are the HTTP request methods, and what is the difference between them? What are the advantages of using the right HTTP methods? Why…
-
6
votes3
answers993
viewsHow to simulate JSON responses?
I need something that simulates JSON responses for me. A while ago I had seen a site that did the following: You pass parameters through a URL, e.g.: ?nome=Wesley&idade=21 Received in the call…
-
6
votes2
answers535
viewsHTTP GET using localhost
I am creating an application using phonegap + Onsen framework that will be powered by Web Services (Restful). But I can’t seem to get a conversation going between the two. My call to the Web Service…
-
6
votes1
answer93
viewsWhat are the main types accepted by the Fetch API for the HTTP request body?
I know I can use the API fetch to perform HTTP requests by browser. And I know I can use the property body to configure the body of the request. But I would like to better understand which types I…
-
5
votes1
answer1657
viewsWhat does code 201 of a Request mean?
In research I saw that the code 201 of a Request means : The request was fulfilled and resulted in a new resource being created. But I didn’t really understand the meaning of it. What would be an…
-
5
votes2
answers820
viewsGET, POST or PUT, which one to use to issue a invoice?
Which should I use when the intention is not to view, save or update the data? I’m creating an API that makes the issuance of an electronic invoice, I made the complete CRUD for the information of…
-
4
votes2
answers4463
viewsHow to view a browser’s http request, and the server’s http response
I would like to get this information to study full examples of https protocols with Cookie and Sessions, either through Socket Java, PHP. If possible through the browser itself.
-
4
votes1
answer789
viewsHow do HTTP request?
I would like to make an HTTP request to my college server by mimicking the requests sent by the browser so I can log in and check my notes. I already have experience with mobile development, my…
-
4
votes1
answer1203
viewsSend . txt file from one pc to another using http service
I need to send a file from one PC to another over the network, only using requests http, so I don’t have to lower the level of socket, that takes work. Someone enables me to clear up with some API…
-
4
votes1
answer211
viewsuse user ip as proxy to request
I am developing a site using the guzzle and wanted to use the ip and the port that the user accesses the site as proxy at the time of the request already tried these codes and n was <?php $ip =…
-
4
votes2
answers417
views"Cannot read Property" after an http.get request
Hello, all right? I have the following problem. I am making a Restful request (http.get) and am writing the received object into a variable within $Scope. However, when I try to access this variable…
-
4
votes1
answer4507
viewsHttpwebrequest fault
I’m trying to consume a Webservice via Webrequest in c# and I just can’t get any response from the server. However, via Postman I get the answer using the same parameters. code: var JsonCliente =…
-
4
votes1
answer2549
viewsHTTP React Native Request
an API sends a status:false the code taken status. While status==false, will be rendered the image of exclamation.png and message 'Pedido em Análise'. Case status change to true both image and…
-
4
votes1
answer125
viewsHTTP request within a company that uses proxy
I’m sorry if that question is repeated. I always try to get the answer before asking here, and this time I didn’t (I suddenly didn’t use the right keywords, perhaps for lack of knowledge, but…
-
3
votes1
answer2003
viewsHow can I check if there is a file in an URL with Idhttp?
I need to check if a particular file online is existing if it will return True, if not, False. Anyone can help?
-
3
votes1
answer754
viewsDifference between Httpclientbuilder.create(). build(), Httpclients.createDefault() and Defaulthttpclient
When creating an HTTP connection using: HttpClientBuilder.create().build(), HttpClients.createDefault() or: DefaultHttpClient. What’s the difference? private static CloseableHttpClient httpClient =…
-
3
votes1
answer1419
viewsAPP Communication with Web Server
I would like to know the best way, in terms of security/performance, to make my mobile/android application communicate with a web server (apache/php, for example) to receive/send data. The idea is…
-
3
votes1
answer136
viewsUse the same getInputStream() for 2 different bufferedReader
I need to access a file on an HTTP server and pull information from two different places inside that file. Right now I can take away just one. My doubt is, I can just do: BufferedReader in = new…
-
3
votes2
answers399
viewsDoubt about HTTP POST
I’m trying to text through a Webservice. To send a single SMS is simple. Just use the URL in this format:…
-
3
votes2
answers2269
viewsHow do I login to a system via an HTTP request?
I’m performing an HTTPS get request for the following address, my initial intention is to receive the html data from the page. I followed the tutorial of Mkyong, but I get the answer code 302, I…
-
3
votes1
answer1696
viewsDoes HTTP delete method have body?
In the MDN documentation: Requisition has body No The successful response has body No Insurance No Idempotente Yes Cacheable No Accepted in HTML forms No I also saw here on the site answers saying…
-
3
votes2
answers200
viewsPatch Methods with Route and Authorize - webApi
I am building a project with webApi2 using Oauth. The system has (for example) User Registration (default), with permissions to View, Edit, New, Enable, Inactive, Delete. The standard methods of…
-
3
votes1
answer100
viewsWhat do Threads share when making Http calls?
The problem: I can’t login to a site more than once on Threads different. My application is a Console application. If I open several executable, can each do successfully login in one Thread, only…
-
3
votes2
answers838
viewsHow to check if server is available before request.urlopen in Python?
I have the following HTTP request code on my server in my python code: import urllib.request import json url= urllib.request.urlopen('http://ENDERECOIP/pasta/arquivo.php') x= url.read() y =…
-
3
votes2
answers514
viewsTake value from within a function
I have a logic problem here, I think it must be a very "dumb" thing on my part, like, I have to take a value from inside the function, and I’m not getting with a Return because it’s an http request.…
-
3
votes0
answers730
viewsHttpwebrequest - Recover Nfe
I’m accessing the link of the Farm site ( http://www.nfe.fazenda.gov.br/portal/consulta.aspx?tipoConsulta=completa&tipoConteudo=XbSeqxE8pl8%3d) with the aim of returning the filled Nfe. When I…
-
3
votes2
answers184
viewsDo data received via Request using Doctrine need to be processed?
I’m developing a new project, it’s the first time I’m using Doctrine with Silex and I am in doubt as to the receipt of information through forms. I receive the data from forms through the Request of…
-
3
votes1
answer1661
viewsHow do I make an http request with php with authentication and waiting for a file to respond?
I am using a Text to Speech service and would like to use it in a php that I’m riding. The problem is that I never did what the api asks and I don’t even know where to start. this type of…
-
3
votes1
answer56
viewsAngularjs ignores content-type for GET requests
In my Angular 1 application, I’m using $httpProvider to be able to set the content-type by default in all methods, but for GET methods, it does not send in its header. How can I force the angular to…
-
3
votes2
answers295
viewsError in Spring: console Delete request points out that the method is not supported
I am making a request via Ajax to delete a user and get the message that the delete method is not supported, someone has any idea what could be? My controller: package com.br.livraria.controller;…
-
3
votes1
answer855
viewsHow to make GET and POST requests on android, with a quick and updated tool?
I am currently using the volley for web requests. But I’m finding this tool too slow. I googled looking for alternatives, but all results I find are old, 2017, 2016 down. About the org.apache.http…
-
3
votes2
answers157
viewsHow to create a property on an existing object of an http request?
I’m trying exhaustively to put a property on an object that comes from a request (JSON), but I’m not getting it, it’s like it just doesn’t, but when I do a console.log, there it is, but it’s not…
-
2
votes0
answers15
viewsWindows Phone does not request an API
Well, I have the following modules in my project: Concerts.Console Concerts.Mobile Concerts.Core Concerts.Models Concerts.Webclient Concerts Tests. Basically it’s the following: The module…
-
2
votes1
answer43
viewsGet name resolution time on HTTP request
Long live, Is it possible to obtain separate name resolution time from access time? The code I have is: HttpURLConnection connection; try { URL endereco = new URL(url); connection =…
-
2
votes1
answer129
viewsRecover parameters with $_GET and $_POST in the same php file, is that correct?
I make this request: app js.: fetch(URL + ?controller=UserController&action=insert, { method: 'POST', body: formData }) fetch php.: $controllerName = $_GET['controller']; $actionName =…
-
2
votes2
answers1097
viewsExcel vba - Httprequest GET
I am trying to do a GET in VBA in Excel, and found several examples, below is what I am using: Sub http() Dim MyRequest As Object Set MyRequest = CreateObject("WinHttp.WinHttpRequest.5.1")…
-
2
votes1
answer568
viewsWeb Crawler (Spider) with ajax in JSF using Node.js or Jsoup api in java
I have the task of creating an interface optimized for touch monitor, taking data from a website (http://www.consultas.der.mg.gov.br/grgx/sgtm/consulta_linha.xhtml). This site gives a listing of bus…
-
2
votes0
answers696
viewsKeep session active for multiple requests using CURL is too slow
I made a script to post ads automatically on a classified site for a particular user. I store the ads ID locally in the database, then with CURL, I log in, and then loop on each ad ID to activate it…
-
2
votes1
answer74
viewsLogin Beanstalk API
I’m trying to make an integration with the service of http://api.beanstalkapp.com/ and I’m having trouble making the request in C#, always returns me the error below: An Exception of type…
-
2
votes2
answers1377
viewsHow, after a POST request, to receive JSON feedback on C#?
I need that after making a requisition POST http, I also receive the json return that is in the echo of php. This is the test code on php <?php if(isset($_POST['request'])) { echo $jsonret =…
-
2
votes1
answer9195
viewshttpclient - Webexception: The underlying connection was closed: The connection was closed unexpectedly
I created a very simple C# console application to test connection in an API, but I can’t submit the request. I tried with other Apis and they worked, but this particular one I can’t. It would be a…
-
2
votes1
answer4570
viewsHow to send parameters via java post using Httpurlconnection?
I am having a problem sending through a POST method in java parameters using Httpurlconnection. I’ve been trying a few ways and researched a lot, but no way it worked for me. I’ll leave the code…
-
2
votes2
answers627
viewsFetch API cannot load [URL]. Response for preflight has invalid HTTP status code 404
Greetings ! I am facing the following problem, I make a request [POST] via Fetch API and "call" does not conclude. REQUEST VIA Fetch API const requestInfo = { method: 'POST', body: JSON.stringify({…
-
2
votes1
answer164
viewsERROR creating Unique constraint with two fields in the Laravel request?
I tried to implement an example I found here at Stackoverflow however unsuccessfully. RULE: Unique double (user_created - description) / User Code you created and Description Another user could…
-
2
votes0
answers89
viewsWhat is Mixed Content? And what are the "Optionally Lockable Content" and "Lockable Content"?
Although I understand almost nothing about this subject I was reading about the Protocols and Safety Certificates, because I saw this alert Mixed Content on a website Reading about it I came across…
-
2
votes2
answers46
viewsCreate a Div for each request result
To create a div for each result obtained through a request in an API, the API in use is "https://jsonplaceholder.typicode.com". My intention is to replicate a div "caixaPost" for each obtained…
-
2
votes0
answers128
viewsCan requesting CSS within Body speed up page loading and improve rendering performance?
First of all: We know that some requests made within the <head> document blocks page rendering. And we also know that hj on time is possible and allowed to use links de folhas de estilo within…
-
2
votes1
answer33
viewsReturning Internalservererror a Tuple list
I have the following code: public async Task<IHttpActionResult> Gravar() { List<Tuple<string, string>> statusRetorno = new List<Tuple<string, string>>();…