How to Use Postman Environments for Efficient API Testing

Efficient API testing involves flexibility, reusability, and the ability to test different configurations seamlessly. Postman, a versatile API testing tool, offers a feature called “Environments” that allows you to manage variables and configurations for your API tests. In this guide, we’ll explore how to use Postman Environments effectively for more efficient API testing, complete with extended code examples.

Continue reading “How to Use Postman Environments for Efficient API Testing”

Automating API Testing with Postman Collections and Newman

API testing is a critical part of the software development process, ensuring that your APIs work as expected. While manually testing APIs is valuable, automation can significantly improve efficiency and reliability. In this guide, we’ll explore how to automate API testing using Postman Collections and Newman, a command-line companion tool. We’ll provide code examples to help you get started.

Continue reading “Automating API Testing with Postman Collections and Newman”

Mastering API Testing with Postman: Code Examples, Tips, and Best Practices

APIs (Application Programming Interfaces) are the backbone of modern software development. They allow different applications to communicate and share data. Effective testing of APIs is crucial to ensure the reliability and functionality of your applications. Postman, a versatile API testing tool, empowers you to master API testing with ease. In this guide, we’ll explore code examples, tips, and best practices to elevate your API testing skills using Postman.

Continue reading “Mastering API Testing with Postman: Code Examples, Tips, and Best Practices”

Getting Started with Postman: A Comprehensive Guide for Beginners

In the world of software development and API (Application Programming Interface) testing, efficiency and effectiveness are paramount. Postman, a powerful and user-friendly tool, is here to make API testing and development a breeze. Whether you’re a developer, tester, or someone looking to explore the world of APIs, this comprehensive guide will walk you through the fundamentals of Postman.

Continue reading “Getting Started with Postman: A Comprehensive Guide for Beginners”

AJAX POST request: Invalid request (Malformed HTTP request) on console and net::ERR_EMPTY_RESPONSE on chrome dev tools

When you encounter the error “Invalid request (Malformed HTTP request)” in the console and “net::ERR_EMPTY_RESPONSE” in Chrome Dev Tools while making an AJAX POST request, it usually indicates an issue with the request itself or the server’s response. Here are some common reasons and troubleshooting steps to help you resolve the problem:

Continue reading “AJAX POST request: Invalid request (Malformed HTTP request) on console and net::ERR_EMPTY_RESPONSE on chrome dev tools”

Using preg_split() to explode() by multiple delimiters in PHP

Just a quick note here. To explode()  a string using multiple delimiters in PHP you will have to make use of the regular expressions. Use pipe character to separate your delimiters.

There are also various flags you can use as optional: Continue reading “Using preg_split() to explode() by multiple delimiters in PHP”

How to use PHP to insert content after or before HTML tag

The problem is quite simple…you just want to count a specific tag on a page and insert some content. After or before it’s just a matter of perspective. So let’s say you want an ad, for example, to be inserted, after the fourth H2 tag. So let’s go and insert an ad code or any other content block after some HTML tag. Here we have a simple PHP function: Continue reading “How to use PHP to insert content after or before HTML tag”

Simple OAuth2 authorization code grant example using PHP and cURL

The authorization code grant methods, should be very familiar if you’ve ever signed into an application using your Facebook or Google account.

The flow is quite simple. The application redirects the user to the authorization server >> the user will then be asked to log in to the authorization server and >> approve access to his data. And if the user approves the application  >> he will be redirected back to the application. Continue reading “Simple OAuth2 authorization code grant example using PHP and cURL”

Limit the number of keywords in WordPress tag cloud to control PageRank

Did you know that the default wordpress tags, labels or keywords from the sidebar can have a huge impact on your website? Well it does.

Beginning with Version 2.8, the default tag limit in wordpress is set to 45, witch is quite large and can definitely affect PageRank on small blogs with less PageRank to spread around. However the net affect can still be helpful on high authority blogs. Continue reading “Limit the number of keywords in WordPress tag cloud to control PageRank”