Error fetching Ajax data via $_POST

When fetching some data via ajax you need to check the Request Headers Content-Type. If Content-Type is not set as below the $_POST will not be able to fetch data. $.ajax({url: “Some server side url”,type: “POST”,data:{userEmail : email},headers: {‘Authorization’: ‘Bearer ‘,‘cache-control’: ‘no-cache’,‘content-type’: ‘application/x-www-form-urlencoded; charset=UTF-8‘},success: function(response){//console.log(response);}error: function(xhr, status, error) {console.log(“Error”+error);return;}});

5 Most useful linux commands to test connectivity

5 Linux commands to test connectivity Ping Command: It is used to check the source host reachability to the destination host. Syntax: Example: 2. Traceroute Command: It is used to see all the hops in between the source and destination hosts Syntax: Example: 3. Nslookup command: It is used to get information from the Domain … Read more

Angular 10: Display Records Count Example

We are going to see example of angular to display records count in the page bottom. You can use this to directly display the number of records. Follow below steps to display number of records in angular. Angular Display Records Count The below highlighted part of the code will display the number of records in … Read more

NodeJS – Create, Read and Delete 3 most useful operations

Today, we are going to have CRUD operations in NodeJS using readily available libraries on www.npmjs.com We will learn how to do Create, Read and Delete operation in NodeJS using Locker system used in Banks example. Locker System: In Bank, there are fixed number of lockers available which when fulfilled the next customer will be … Read more

SSL Certificate 3 most useful commands: Create, Import and Signing CSR

SSL Mutual Authentication SSL Certificate Mutual Authentication process means two parties authenticating each other by verifying the details on the digital certificates exchanged between them. This certificate behaves as an identity of the party which is sending request to your application. It is a client-server authentication where a client(web browser/ web application) interacts with server(web … Read more

Top 15 useful Keytool commands

Important Keytool commands for SSL Certificates Keytool commands to Create or Import These commands allow you to generate a new Java Keytool keystore file, create a CSR, and import certificates. Any root or intermediate certificates should be imported before importing the primary certificate for your domain. Generate a Java keystore and key pair: Generate a … Read more

How to set Timezone in Laravel 7

In this article we going show how to set timezone in Laravel 7, there are two ways to set time zone in Laravel. How to set Timezone in Laravel 7 Open the file app.php located in config directory in your project. Check for Application Timezone where default time zone will be set as, Here you … Read more