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
-
10
votes1
answer527
viewsAre all HTTP methods/verbs accepted by APACHE and NGINX?
In a talk I had recently, one of the speakers commented that the only methods that, in fact, the APACHE and the NGINX accept/support are methods/verbs GET and POST. The speaker further clarifies…
-
10
votes2
answers1514
viewsHow to continue executing a script even after sending the data to the browser?
When I asked the question What is the solution for asynchronous PHP processes?, basically what I had in mind was this question: "There is some way to complete a request from a client, but leave a…
-
10
votes4
answers401
viewsSkipping route due to poorly formatted parameter is a syntax error?
For example, I have the route GET: /user/{id}, id passes a regular expression validation of type [0-9]+. When performing requests with the verb GET for the following Urls: /user/17, returns user…
-
10
votes1
answer125
viewsWhat is the latest and stable version of HTTP?
I would like to know the latest version of HTTP and the most stable and used version of it.
httpasked 5 years, 5 months ago Samuel Cavalcanti 127 -
9
votes2
answers3250
viewsHow can I purchase HTTPS in my web application?
In this link I learned how HTTPS works: Stackoverflow - How HTTPS works But I don’t know what applications I should use, and how to acquire HTTPS, depends on any host, programming language etc. To…
-
9
votes2
answers1032
viewsAttacks of data interception
What are known data interception attacks, type Man-in-the-Middle?
-
9
votes1
answer2134
viewsConvert RTSP stream to HTTP Live Stream
How do I convert RTSP stream to HTTP Live stream? I have an IP Camera that uses the RTSP protocol to perform video streaming, and would like to make it work on iOS using the Safari browser.…
-
9
votes1
answer1165
viewsHow to avoid HTTP request overload when consuming REST API?
I have a REST API made with Laravel and a Webapp (which uses the features of this API) made in Angular.JS. My Webapp is a unique portal for registered users, but now I’m creating a website so that…
-
9
votes2
answers532
viewsWhat is the first programming language or technology used for dynamic pages?
I searched a lot on the subject, I read about the front-end story, like the beginning of the Javascript® (Mozilla/Netscape), but I was really curious about the back-end and I really can’t find…
httpasked 7 years, 7 months ago Guilherme Nascimento 98,651 -
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…
-
9
votes1
answer2490
viewsDoes the REST standard allow the use of query string?
Most frameworks I know use URL parameters as follows: /recurso/variavel For example /produtos/{nome} /produtos/{categoria} Some use between {} others <>, etc. To differentiate the searches is…
-
8
votes1
answer279
viewsHow to view/hide content from a page according to the "HTTP status" of the site?
I have the following problem... Scenario: A site with HTML-only pages (we cannot use a server-side language). We embed video from Youtube, but some companies, as we know, block their employees'…
-
8
votes2
answers1442
viewsHTTP requests in C++
How could I make a request in a URL that would return a json in C++? I need to access a /Return.php URL that returns the string {"status":true,"hash":"12#87!!3@WSS\/.","user":"admin"} and work on it…
-
8
votes1
answer4275
viewsLogin to facebook com python
I would like, for educational reason, to login to facebook with a python script. I tried with lib requests import requests s = requests.Session() post_url =…
-
8
votes2
answers3578
viewsIs there a size limit for data transmitted via POST?
I sent a form via GET with a large number of text (about 6,000 characters) and received a very long URL error. I did the same test via POST and the data was successfully sent. My question is whether…
httpasked 7 years, 6 months ago Italo Rodrigo 4,344 -
8
votes2
answers322
viewsWhat is the HTTP verb I use for logout?
I have a logout endpoint to make the Current user token invalid. With this came a question: Which HTTP verb should I use to log out?
-
8
votes1
answer1138
viewsWhat are the existing layers in an HTTP/HTTPS request?
I gave a special attention this morning to read some questions and answers here on the site that speak specifically about https/ssl. Like for example these: Data received from HTTPS comes encrypted?…
-
8
votes1
answer139
viewsHow to avoid conflict of data between two PUT requests on HTTP?
What techniques can we use to avoid the collision between data of two PUT requests so that the changes of the second request do not override those of the first? Let’s imagine the situation: There is…
-
7
votes2
answers1181
viewsWhy don’t browsers implement HTTP’s PUT and DELETE protocols?
For some reason the Internet browsers (Chrome, Firefox, IE, ...) decided to only implement the GET and POST methods of the HTTP protocol. Other methods such as PUT and DELETE were left out. Why? My…
-
7
votes4
answers1799
viewsMaximum amount of elements sent by a form?
I would like to know if there is a maximum amount of elements that I can send from one form to another POST as I saw GET. I know if I pass my data via GET, there is a maximum length of URL, varying…
-
7
votes1
answer161
viewsIs it a good idea to map Urls that delete GET entries?
I’m studying Django and wondered if it’s really good practice to set up removals URL via GET, for example: http://meusite.com.br/usuario/deletar?id=10. Is this really good practice? Since some HTTP…
-
7
votes2
answers9043
viewsWhat’s the meaning of error 406?
Not Acceptable An appropriate representation of the requested Resource /aa/bb/cc.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an…
-
7
votes2
answers4162
viewsIdentify and retrieve PUT and DELETE variables
I’m developing a solution for API, I can currently identify the method by: $_SERVER['REQUEST_METHOD'] How can I get the variables PUT and DELETE? As in the GET and POST i use: $_POST; $_GET; When…
-
7
votes3
answers1253
viewsWhat is Gzip? How does it improve a website?
How exactly Gzip improves a site’s performance? I wonder what it’s like under the table. I saw that some sites that test the speed of other sites usually check the gGzip, but what is this? How…
-
7
votes2
answers3003
viewsWhat is the difference between Webhooks and a REST API?
In a API REST We define a resource to receive data and then return some response. And to send a message to a webhook, we make a request and also receive a reply (depending on the case). You both do…
-
7
votes3
answers4250
viewsWhat is the purpose of the "header()" function?
In my question about the HTTP protocol understood that HTTP requests have a format that is described by the protocol itself. However, in PHP there is a function that sends data to HTTP which is the…
-
7
votes2
answers753
viewsWhat is the difference between 301 and 302 redirects?
I would like to know the difference between these two types of redirect code: 301 and 302. I realized that they are called on Google’s Webmaster Tools Permanent redirection and Temporary…
-
7
votes2
answers2792
viewsWhat status code to use when there is no database record to return on an HTTP request?
I own an endpoint that returns a list of products. Therefore, if there is data from this list I set the HTTP status code to 200, and if there is not, I return only a json saying that no record has…
-
7
votes1
answer871
viewsHow to instruct your browser to cache my Javascript and CSS via web.config
I reviewed my new website on Google Pagespeed Insights, I made some fixes, and now I need to cache some files (CSS and JS) in the browser. I looked for some articles/questions in Stack Overflow but…
-
7
votes2
answers2558
viewsHTTP status for registered user
What status should I return to my API if a user tries to register with an existing user name or email in the system?
-
6
votes1
answer576
viewsHow to detect the error cause: 'The requested URL returned error: 503'?
I’m working on developing a web-site where I get back and forth the following error that I can see through the Firebug: The requested URL returned error: 503 Is there any way to find out the origin…
-
6
votes2
answers241
viewsWhy does Steam api refuse Angular calls?
I am simply trying to feed my application data from the Steam Api. Let’s take this example:…
-
6
votes1
answer989
viewsHow to reduce the size of a variable passed via POST by compressing it
My application in Android picks up the String sends to the arquivo.php that processes the data. I soon realized I couldn’t pass the code on base64 to the arquivo.php. I need some function in java…
-
6
votes2
answers913
views$http.get with Angular JS
searching for data from an api through $http.get, but I find an error. My request within a service: app.service('pessoas',function($http){ this.getHumanos = function(callback){…
-
6
votes4
answers1233
viewsWhat is the correct order to use the PHP header and ob_start functions?
Before starting the ob_start function(); header('Content-Type: text/html; charset=utf-8'); ob_start(); .... ob_end_flush(); After starting the ob_start function(); ob_start(); header('Content-Type:…
-
6
votes1
answer96
viewsWhat is the purpose of "X" at the beginning of some header names?
There are specific HTTP headers that have the purpose of passing some information. As for example the Content-Type that informs the mime of the content you want to receive or send. We also have the…
-
6
votes1
answer198
viewsHow do sessions work at HTTP level?
I came across this question recently and didn’t find much about it in web. I’m used to working (and reading) on Session in PHP, but I never stopped to think what they’d be like HTTP, someone would…
-
6
votes2
answers795
viewsWhat is http/ftp 220 status?
Contextualizing... when trying to connect to the hosting server, by FTP, always returns the 220 status and, after a few seconds, disconnects by time Being a status of type 2xx is not an error…
-
6
votes0
answers298
views -
6
votes1
answer149
viewsHow do I set the file size in a Download response?
I have an application where I give an answer by downloading a certain file on the server to the client. I zip the image files that are in a folder on the server and give an answer by manipulating…
-
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
answer1754
viewsHow to get around the expired page problem?
My problem is this: The user logs in, the data is sent to the request page (which lists all the person’s requests in summary form). On this page is checked if the login is valid. If it is, the rest…
-
5
votes3
answers6516
viewsWhat HTTP status code to use to indicate validation failure?
When a method in a web API detects that there has been a failure to validate the data of an entity to be added or updated, is there any HTTP code that is standard to be sent? For now I’m using code…
-
5
votes1
answer175
viewsIs it possible to make a fake POST request?
I am creating a central system that validates information coming from other client systems via post and I would like to know if it would be possible for someone to make a false post request by…
-
5
votes1
answer238
viewsWhat does this definition of resource really mean?
I’m studying about web API’s and REST and the book I’m reading says the following: The Web is built around three main concepts: resources, URI’s, and representations. A resource is anything that has…
-
5
votes1
answer316
viewsWhat status can I return in an attempt to submit a form without a TOKEN?
I’d like to know what the status http I must return to my application if someone is trying to forge a request via form. The application I developed is done in Laravel 4 and I’m using that…
-
5
votes2
answers304
viewsMake a subdomain or create a subfolder?
Today a certificate seller SSL informed me that my site.com.br/intranet it’s not safe, what the right thing would be to do intranet.site.com.br that’s true? Does a sub-domain make any difference…
-
5
votes1
answer3559
viewsWebservice REST Simple
How to create a simple REST-type Webservice that does HTTP communication from an Android device with the server, using the PHP language? My goal is to make Requests and receive as a result Response…
-
5
votes1
answer331
viewsAndroid and HTTP request field X-auth-token
I am trying to send a token, through an Android application in the 'X-auth-token' header field. This request is sent to a PHP server, where I use Codeigniter. Android HttpClient httpClient = new…
-
5
votes3
answers949
viewsWhy does the User-Agent header always return "Mozilla /5.0" independent of the browser?
I know that in PHP we can access a header called User-Agent and thus discover information about the operating system and browser used by the client. The only thing I don’t understand is that…