How-to articles, tricks, and solutions about HTTP
Detecting request type in PHP (GET, POST, PUT or DELETE)
In PHP, you can use the $_SERVER['REQUEST_METHOD'] superglobal to detect the request type.
Doing HTTP requests FROM Laravel to an external API
To make an HTTP request from Laravel to an external API, you can use the HTTP client of your choice.
How do I implement basic "Long Polling"?
Here's an example of how you can implement Long Polling in PHP:
How to disable output buffering in PHP
In PHP, you can disable output buffering by calling the ob_end_flush() function or flush() function.
How to send a GET request from PHP?
To send a GET request from PHP, you can use the file_get_contents function or the cURL extension.
How to send HTTP request in Java?
In Java, you can send an HTTP request using the java.net.URL and java.net.HttpURLConnection classes.