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

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