Most voted "http" questions
Hypertext Transfer Protocol (HTTP) is a network protocol, application layer of the OSI model, which is used for content transfer on the World Wide Web.
Learn more…465 questions
Sort by count of
-
3
votes1
answer137
viewsProtect the server from "false requests"
I’m having second thoughts about security. When I want to add date or receive, I make an HTTP POST or GET request to my server, which returns the JSON response. Assuming it is an application that…
-
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
answers3004
viewsHow to open a local server using Node?
I want to open a local server to test my project on Reactjs, but I want to see it both locally on my machine and on another computer. I have to open some door? Edit: Both using the same network.…
-
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
answers66
viewsHow to put + of a domain in this code, different references
Hello, I have a code that works as a reference. That is if the visit comes from domain 01.com, it displays: WITH REFERENCE if it does not display: UNREFERENCED Code: <?php if…
-
3
votes2
answers71
viewsHow to style links and images that are referenced in HTTP and not in HTTPS?
I have several pages with several images and several links. However I am migrating from the protocol HTTP to the HTTPS. I would like all images and links that are indexed or linked via HTTP to…
-
3
votes1
answer79
viewsIs it correct to make a user authentication by the backend return message?
Good afternoon, you guys! Earlier I took a question regarding user authentication in my application and after some good tips I was able to authenticate my user, the doubt now is whether the method…
-
3
votes2
answers928
viewsHow to hide Axios request data in Javascript (JS Node)
Hello, I’m developing an application and setting up a user registration screen, but I’m wondering if it’s possible to hide the data that Axios is requesting for the API. My Javascript code, which I…
-
2
votes1
answer297
viewsPython - HTTP Digest authentication with urllib2
I needed to authenticate on a test server to consume a service on a webservice, I managed to make the authentication and generate xml with the following code based on a code of Soen operacao =…
-
2
votes1
answer1864
viewsMessage "301 Moved Permanently" began to appear suddenly
I have two applications that worked perfectly, however, without changes in the code, no longer work. On one side, an application with a JSP making a call POST and passing two parameters Hidden:…
-
2
votes0
answers327
viewsHow to convert String to Byte Array and vice versa?
I need to send an XML via post, but according to the service documentation, it is necessary that the data is sent "in bytes". So, I have the XML in question inside a Tstringlist. How to turn it into…
-
2
votes1
answer327
viewsAccess URL without receiving the reply
I have a page that performs several tasks. This page is open to end users of the system, who can access it via browser. In certain situations I would like to trigger page processing with a console…
-
2
votes1
answer1136
viewsjava.lang.Noclassdeffounderror: org/apache/Commons/httpclient/Httpexception
I’m having a problem using the library httpclient, the exception is happening: Caused by: java.lang.Classnotfoundexception: org.apache.Commons.httpclient.Httpexception I don’t know if I am also…
-
2
votes2
answers25433
viewsDisable Access-Control-Allow-Origin in Chrome and Firefox
I’m developing an app using Ionic on Macbook with OS X Yosemite. When trying to send data via POST or receive via GET to a remote server, error appears: Chrome: Xmlhttprequest cannot load…
-
2
votes0
answers68
viewsSend event data google Calendar via http to java server
In my script java I can list my calendar events as below: String pageToken = null; do { Events events= null; try { events = service.events().list(CALENDAR_ID).setPageToken(pageToken).execute(); }…
-
2
votes1
answer389
viewsHeader receiving error in PHP server sent via http request
Galera I need your help. My restfull client application is sending a header called 'Auth' with an authentication token to the PHP server. When I do the tests with a server running on localhost…
-
2
votes2
answers1331
viewsHTTPS server consults postal zip code
I am trying to order the address by zip code on a website, but is giving the following error: Mixed Content: The page at 'https://meusite.com.br' was Loaded over HTTPS, but requested an insecure…
-
2
votes1
answer198
viewsXAMPP 5.6.16, apache error with globlas on
I installed Xampp 5.6.14, changed the clause to on (register_globals=on) in php.ini and now apache does not start, application error. I’ve already made changes to http ports for 8000 in httpd.conf…
-
2
votes3
answers310
viewsdoubt with ajax and angular
I have my back-end, in my controller I have a way salvarBairro(string dados) I’m using angular, this guy here calls my way to salvaBairro from the back $scope.AddBairro = function (bairro) {…
-
2
votes1
answer97
viewsWebserivce only accepts requests from local server
I have a Webservice in PHP and need to use 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…
-
2
votes1
answer51
viewsHow to 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 already selected fields) using ASP.NET MVC? Session? Cache? Tempdata?…
-
2
votes2
answers1072
viewsFatal error: Call to Undefined Function http_response_code() php 5.2
I took a script (Java android e php) from a book I’m studying, which simply takes a photo sent from android and saved in a folder on my server. The android application ran without any error, but I…
-
2
votes1
answer654
viewsHow can I find out the http request method from PHP?
I know that every http request made, whether by browser or other resource, sends a certain method (GET, POST, PUT, DELETE and etc.). I’m thinking about building a Restful application with PHP, but I…
-
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
votes1
answer177
viewsHTTP - Correct return types
I have some questions regarding the most appropriate status for each situation to follow: PUT in Object without Id PUT in the URL localhost:8080/users/1 with a JSON without the attribute Id. PUT in…
-
2
votes1
answer885
viewsCreate https session with ajax http request
I’m developing a site where the client side initially accesses http until they log in. The login is done from http itself with an ajax request that calls the php script in https and in this script a…
-
2
votes0
answers74
viewsCall HTTP error ERR_RESPONSE_HEADERS_TOO_BIG
I am submitting a form with lots of information and I receive the following message: ERR_RESPONSE_HEADERS_TOO_BIG Small section of the code: $("#editForm").submit(); I understand that the error is…
-
2
votes1
answer653
viewsCatch Querystring with Nodejs
I need to pick up the QueryString which is being passed to the server created on Nodejs. I’ve tried several ways but I can’t get the parameters of and Ph. I’m a beginner at Nodejs and the code I…
-
2
votes0
answers48
viewsProblems with HTTP Response
I’m studying the use of sockets and multithreading to mount an HTTP server in Java, but I’m going through some complications. When I run the server code, it opens correctly in Internet Explorer, but…
-
2
votes1
answer576
viewsHow does content-type work in java?
I saw a video of a guy wearing the connection.setRequestProperty("content-type", "aplication/x-www-urlencoded"); But I don’t understand how it works, especially the "aplication/x-www-urlencoded".…
-
2
votes0
answers137
viewsHTTP file streaming on Node
Hello, I am developing a system in which one of the fundamental parts is to transmit a file via Node JS. Suppose I have one connection to, this connection is uploading a file via HTTP. And there’s…
-
2
votes1
answer115
viewsDifference between :80 and other doors
I have a hosting problem where I will not be able to raise my application in the standard port :80, as a solution presented to me have indicated to climb it in a different door, example :3000, and…
-
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
answer307
viewsSend headers in angular http request
I need to send three values in my header in http request, but when I check in the browser I realize that my headers have not been sent. I tried something like:…
-
2
votes1
answer99
viewsHow can I register a route in IIS to my container Docker?
I have a job HTTP which I am making available within a Docker container. So far, for all my services HTTP i created a redirect rule (Rewrite URL) on IIS which allowed my services to be available at…
-
2
votes2
answers220
viewsDoubt about htaccess
I have a friendly link that would be localhost/artists/nome-do-artista/, but I want to create pages inside it for example Biography. localhost/artists/nome-do-artista/biography, only that my…
-
2
votes1
answer67
viewsHow to pass the "+" signal using GET?
I need to send a parameter GET which is encrypted in AES but in the hash sometimes comes a + and in sending the browser interprets this + separating the hash. Example of the URL:…
-
2
votes0
answers51
viewsWhat’s the "P3P" heading for?
I recently found a header with the name P3P, I’ve never seen this before and I don’t know what the real impact is on using this header. I found some information, like this huge documentation, some…
-
2
votes1
answer411
viewsPOST method in Angular
I have a simple Angular application and need to make a call to my API to get one token. But I am facing difficulties. I will try to explain a little about my flow. I created a service class where I…
-
2
votes2
answers102
viewsHow to convert the If-Modified-Since header to a date (and vice versa)?
The header If-Modified-Since displays the following return format: Wed, 21 Oct 2015 07:28:00 GMT I need to compare this date that comes in this header item with the creation date of a file on my…
-
2
votes0
answers321
viewsHow to Make Multiple Threads in a Java Loop
Description of the Problem I’m making a Pokedex, in which one of its features is to filter all the Pokemons of a certain type. I managed to implement this functionality, but the execution time is…
-
2
votes1
answer479
viewsProblems with Bodyparse on Node.JS using Express (data like POST)
Hi, guys! I am starting my studies in Node and React-Native and I am facing some problems in data transaction in front POST method for my API. I had a similar problem with headers, but I was able to…
-
2
votes2
answers475
viewsHttpclient POST request with Angular 7 returning Undefined
all right? I’m having trouble making http requests on my Angular CLI project. When I use this.http.post(url, dados, config).subscribe(ret => this.retorno = ret) and then I give…
-
2
votes2
answers93
viewsNo constructor without parameters has been defined for this object
I am creating an endpoint in an api and when a method request is made the API returns the error "No constructor without parameters has been defined for this object." even though a builder has been…
-
2
votes1
answer104
viewsHow to read a dataset over http in R?
I have access through a link: 'http://**.**.**.**/matrix/pesquisa_2019-03-17.feather' ou a<-readRDS('http://**.**.**.**/matrix/pesquisa_2019-03-17.rds') But I can’t access them…
-
2
votes1
answer100
viewsProblem with Http Request Angular
Iae galera! Look, I have a code here that’s gets the user data when he types in his CPF, I recently started using Async functions. the idea of Async would not only be to perform the function from…
-
2
votes0
answers48
viewsHow to prevent a specific page from being redirected to https without using php?
Hello. I need to avoid redirecting a page from my site to https, but I didn’t want to use php, java, or other programming language. I’d like to use the .htaccess On my website, I used the rule below…
-
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
votes5
answers4549
viewsHow to pick up images on the internet through Java?
I am very beginner in Java and need to get some images from the internet to insert in my project (there are 5 images). Follow example links: www.tempoagr/tempo/Irati/temp1…
-
1
votes1
answer587
viewsTwo Asynctask running parallel with Httpclient request
I have two classes extending Asynctask, in which they return me a JSON from a server. I am using the following code to run them simultaneously: if (Build.VERSION.SDK_INT >=…