Questions tagged as 'http'

1
answer

How do I display / hide content on a page based on the site's "HTTP status"?

I have the following problem ... Scenario: A site with HTML-only page delivery (we can not use a server-side language). We do a YouTube embed video, but some companies, as we know, block their employees' access to social networks. It happe...
asked by 30.04.2014 / 19:59
4
answers

Maximum 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 via POST as well as via GET . I know that if I pass my data via GET , there is a maximum length of URL , varying a...
asked by 16.01.2015 / 12:19
2
answers

What is the HTTP verb that I use for logout?

I have a logout endpoint to make the current user token invalid. With this I had a question: Which HTTP verb should I use to log out?     
asked by 13.07.2017 / 18:19
3
answers

What is the purpose of the "header ()" function?

In my question about HTTP protocol I understand 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 header() function and I did not quite...
asked by 07.01.2017 / 18:59
2
answers

Why do not browsers implement HTTP PUT and DELETE protocols?

For some reason Internet browsers (Chrome, Firefox, IE, ...) have just decided to implement the HTTP protocol's GET and POST methods. Other methods such as PUT and DELETE are left out. Why? My question arose because #    The Rails fr...
asked by 23.05.2014 / 14:48
1
answer

How to instruct the browser to keep my Javascript and CSS cached through web.config

I analyzed my new site in Google PageSpeed Insights , I made some corrections, and now I need to cache some files (CSS and JS) in the browser. I searched for some articles / questions in Stack Overflow but could not figure out how to cache s...
asked by 05.07.2017 / 15:41
2
answers

Identify and get 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 GET and POST I use: $_POST; $_GET; When executing a r...
asked by 17.12.2016 / 21:03
2
answers

What is http / ftp status 220?

Contextualizing ... when trying to connect to the hosting server, by FTP, always returns status 220 and, after a few seconds, disconnects by time Because it is a status of type 2xx it is not an error neither my (4xx) nor the server (5xx), but...
asked by 23.07.2018 / 00:45
3
answers

What is Gzip? How does it improve a website?

How exactly does Gzip improve the performance of a website? I wanted to know what it's like under the covers. I've seen that some sites that test the speed of other sites usually check gGzip, but what's this? How exactly does it work?...
asked by 07.02.2017 / 13:40
1
answer

How to set the file size in a Download response?

I have an application where I give a response by downloading a certain file on the server to the client. I zipo the image files that are in a folder on the server and give a response by manipulating the headers so that the file is downloaded....
asked by 30.11.2017 / 16:48