Browser provide an XMLHttpRequest object which can be used to make HTTP requests from JavaScript. You can create a function as following - function http…
Read moreSome sites display an estimated time to read their article. So it will help the user to make a decision, read instantly or save some other time for readin…
Read moreStep-1: Check the Elastic Search Version on your machine. curl 'localhost:9200' The output will be like this: { "name" :…
Read moreInitially Django support Sqlit and Postgresql Database, but by installing the MySQL client package we can use MySQL database with the Django project. So n…
Read moreSolution Install package - pip install python-decouple
Read moreSolutions Install package - pip install psycopg2 OR pip install psycopg2-binary
Read moreBy default Django support only Postgres and SQLite. But you can connect SQL database. You need to install a package for SQL database connectivity. Using …
Read moreWe can do it by some different way. Let see the bellow methods Method 1 : Create a simple function as bellow - let serialize = function ( obj ) { var …
Read moreSimply set URL and execute cURL request. Let see the bellow example. $url = "https://www.example.com"; $curl = curl_init(); curl_setopt($curl,CU…
Read moreIn PHP we can call API using cURL or file_get_content. Using cURL : // Initiate curl $ch = curl_init(); $url = "https://www.example.com"; // S…
Read more